-
-
Notifications
You must be signed in to change notification settings - Fork 5k
-
-
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
App sometimes initializes with blank screen #4948
Comments
are you using this pattern? https://reactnavigation.org/docs/en/connecting-navigation-prop.html edit: err sorry, I meant this: https://reactnavigation.org/docs/en/navigating-without-navigation-prop.html |
Yes I use Like this: dispatch(NavigationActions.navigate({ routeName: 'App' })); But most of my navigation is done with the |
can you provide a reproducible example? even if it's not consistently reproducible, I can run it a handful of times until it reproduces |
closing, as it's fairly outdated and repro was not provided. thanks. |
Current Behavior
This rarely occurs and when it does the app doesn't respond to 'Navigation' dispatches. This is something I am not able to reproduce every time I open my app. I think it could be a race condition of some sort.
When I inspect the state I can see all my defined routes, but dispatching any action has no effect. The state diff is always empty.
I'm using a combination of Tab and Stack routes. My app has three tabs which each have multiple stacked routes. I'm using expo SDK v28.
Expected Behavior
I expect my app to navigate to the initial screen, the second or middle tab, when I open it. I expect the app to respond to 'Navigation' dispatches such as the one listed below.
How to reproduce
I'm not able to reproduce consistently, it just happens sometimes.
Steps
Your Environment
The text was updated successfully, but these errors were encountered: