-
-
Notifications
You must be signed in to change notification settings - Fork 588
Closed
Labels
Architecture: NewIssues related only to new architectureIssues related only to new architecturePlatform: iOSThis issue is specific to iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Description
When navigating to 2 screens at the same time on new arch it crashes with the following error:
navigation.navigate('a');
navigation.navigate('b');
"<RNSNavigationController> is pushing the same view controller instance (<RNSScreen>) more than once which is not supported and is most likely an error in the application"
Steps to reproduce
Using this code in FabricExample app SimpleNativeStack.tsx
- Go to "Simple Native Stack" example
- Click on "Go to detail"
- App crashes
Snack or a link to a repository
https://github.com/janicduplessis/react-native-screens/tree/%40janic/double-push
Screens version
main@e5a6220
React Native version
0.74
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
Metadata
Metadata
Assignees
Labels
Architecture: NewIssues related only to new architectureIssues related only to new architecturePlatform: iOSThis issue is specific to iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided