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

admin2025-04-10  0

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,

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744274541a239183.html

最新回复(0)