Closed luskin closed 6 years ago
Hey @luskin How is your layout constructed? Are you using TopTabs? BottomTabs? SideMenu?
you are on debug, this is a problem with RN 0.55
@guyca the Launch screen is a single page view set as root and when all services have loaded I reset the root with a bottom tab bar view.
@GuillotJessica I was using RN0.55 before with react-native-navigation
v1 and this problem did not exist.
@luskin I'm on "react-native": "0.55.2", and the problem was there before using rnn at all
@GuillotJessica well that's react native for ya 😂
Guess we can close this one 😕 I'll reopen if we can confirm RNN has something to do with this
Looks like it was a 0.55 issue, very very strange we did not see it before implementing RNN, see here: https://github.com/facebook/react-native/commit/e5aa5b7c508c5e0e51f7abfcee350e27bef24ba2
@luskin I have this in rn 0.56. Screens from my bottomTabs start app roots.js:5 register App
---> here my prev screen loaded for some reason before app "WelcomeScreen" infoLog.js:16 Running application "Feed" with appParams: {"initialProps":{"componentId":"Component5"},"rootTag":141}. DEV === true, development-level warning are ON, performance optimizations are OFF
----- here my roots init roots.js:7 set options roots.js:125 set Root ------ and here is my WelcomeScreen infoLog.js:16 Running application "WelcomeScreen" with appParams: {"initialProps":{"componentId":"Component5"},"rootTag":151}. DEV === true, development-level warning are ON, performance optimizations are OFF WelcomeScreen.js:32 welcome screen mounted
@rendomnet I think this may be a side effect of hot reloading or live reload, try turning those debug features off and see if this is still the case.
@luskin just tested without hotreloading. and bug remains the same. setRoots that was active during app reaload is started first... before all. please reopen the issue
Android, iOS or Both?
@luskin only Android
Yeah we've ran into this before as well, I believe this is due to Android's app caching for faster app launching in debug mode, I do not believe this occurs when building in release.
@luskin anyway this is a bug and not a documented one. Can you unclose this issue or should I create another one?
I'm having this issue as well, not sure what to do.
the screen is showing blank not visual data on Android screen if somebody knews how to fixit please tall me what to do
Issue Description
On V2 if you have a screen visible and reload via debugger RNN keeps those screens open and remounts them before the app has a chance to reload properly:
In the above example from my app, all of those views (except the launch view) should not be visible until after the
START APP
log, and after the start app log there should be a series of services to startup before the views are visible. On a fresh install from android studio everything works fine as shown in the following logs:Environment