reactjs - React Native navigation not working with react navigation in latest 0.78 version - Stack Overflow

I've encountered a navigation issue in my React Native project after upgrading to React 19.0.0. Sp

I've encountered a navigation issue in my React Native project after upgrading to React 19.0.0. Specifically, navigation using @react-navigation/native-stack within React Native 0.78.1 is no longer functioning. I'm using TypeScript.

Problem:

Navigation calls made via navigation.navigate() are not triggering any screen transitions. The UI remains static, and there are no error messages or console warnings.

Environment:

React Native: 0.78.1
React: 19.0.0

React Navigation:

@react-navigation/native: 7.0.17
@react-navigation/native-stack: 7.3.1
react-native-screens: 4.9.2
react-native-safe-area-context: 5.3.0

Target Platforms: iOS and Android (both emulators) TypeScript: Yes

Whenever I add NavigationContainer it throws error. How do I solve it

I tried the same code with react 18 and react native 0.76.5 and it works completely fine,

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744274539a4566266.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信