-
-
Notifications
You must be signed in to change notification settings - Fork 601
Description
Description
Related to #690
I'm playing around with new architecture and the native stack navigator, and I encountered this issue. It's working properly when using the JS based stack navigator.
I have a simple redux state isLoggedIn which is just a simple boolean flag to simulate an authenticated user. I have a button to toggle the state to replace AuthStack with the MainStack. You know, the classic architecture for auth flow with react-navigation. More info on the official docs.
Steps to reproduce
Just follow the example here https://reactnavigation.org/docs/auth-flow/#define-our-screens
Snack or a link to a repository
https://github.com/karlmarxlopez/rn-navigation-native-stack-new-arch-issue
Screens version
3.18.2
React Native version
0.70.4
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 14 Pro
Acknowledgements
Yes