-
-
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
Initial route params not passed to tab navigator #1647
Comments
…b navigators initial navigation action
What about adding the and then we could have
|
Faced the same issue, this is what worked for me (sample code from my project, not matching your variable names and stuff - just to show its logic):
So you can use this navigator like this:
|
Pinging OP @zash80 since this issue is quite old and related to an old version of the lib. If no answer I'll close in 7 days. |
Hi there @zash80 , In an effort to cleanup this project and prioritize a bit, since this issue had no follow up since my last comment I'm going to close it. If you are still having the issue with the latest version (especially if it's a bug report) please check the current open issues, and if you can't find a duplicate, open a new one that uses the new Issue Template to provide some more details to help us solve it. |
Having a StackNavigator with 'initialRouteName' and 'initalRouteParams' where the initial route routes to a TabNavigator with tabs relying on the initial route parameter, this initial route parameter is not passed down to the tabs.
If the StackNavigator is re-configured to pass parameter via navigate action to the screen containing the TabNavigator all is working fine, means parameter is passed down to the tabs.
Current Behavior
The parameters defined in StackNavigator 'initalRouteParams' are not passed down to a nested TabNavigator.
Expected Behavior
The parameters defined in StackNavigator 'initalRouteParams' should be passed down to a nested TabNavigator.
Code
Environment
The text was updated successfully, but these errors were encountered: