Skip to content
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

Closed
sjaakluthart opened this issue Sep 4, 2018 · 4 comments
Closed

App sometimes initializes with blank screen #4948

sjaakluthart opened this issue Sep 4, 2018 · 4 comments

Comments

@sjaakluthart
Copy link

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.

{
  "type": "Navigation/NAVIGATE",
  "routeName": "Settings"
}

How to reproduce

I'm not able to reproduce consistently, it just happens sometimes.

Steps

  1. Open app
  2. Wait for app load
  3. See blank screen

Your Environment

software version
react-navigation 2.11.2
react-native 0.55.4
node 8.11.1
npm or yarn 1.9.2
@brentvatne
Copy link
Member

brentvatne commented Sep 4, 2018

@sjaakluthart
Copy link
Author

sjaakluthart commented Sep 5, 2018

Yes I use NavigationActions inside my redux action creators.

Like this:

dispatch(NavigationActions.navigate({ routeName: 'App' }));

But most of my navigation is done with the navigation prop. All buttons use those.

@brentvatne
Copy link
Member

brentvatne commented Oct 1, 2018

can you provide a reproducible example? even if it's not consistently reproducible, I can run it a handful of times until it reproduces

@vonovak
Copy link
Member

vonovak commented Jan 30, 2019

closing, as it's fairly outdated and repro was not provided. thanks.

@vonovak vonovak closed this as completed Jan 30, 2019
@react-navigation react-navigation locked and limited conversation to collaborators Jan 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants