-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't replace to nested bottom-tabs from native-stack in iOS when new architecture is enabled #11811
Comments
I have the same issue with new architecture. When enabled on iOS we get a blank screen. Disabling new arch and issue is gone |
My workaround is use navigate and then reset in the Bottom Tabs Navigator Component |
Sorry I didn't understand what you meant. Can you please elaborate on how you got it to work? |
Use
Reset the history (remove InitScreen) in HomeTabScreen:
|
The same issue happens on Authentication Flow, when I do something like this (as mentioned in the docs): isSignedIn ? (
<>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Settings" component={SettingsScreen} />
</>
) : (
<>
<Stack.Screen name="SignIn" component={SignInScreen} />
<Stack.Screen name="SignUp" component={SignUpScreen} />
</>
); I got the same blank screen |
Current behavior
My navigation hierarchy is:
The Init Screen will use navigation.replace to navigate to the HomeTab after initialization is complete.
When RCT_NEW_ARCH_ENABLED=0, the First Screen can be shown correctly.
When RCT_NEW_ARCH_ENABLED=1, it will show a blank screen, and even the header of the HomeTab is not shown.
Expected behavior
When RCT_NEW_ARCH_ENABLED=1, the page content can be shown correctly.
Reproduction
https://github.com/zsien/RNNavNativeStackToBottomTabs
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: