initial scene not working when re-open the app
See original GitHub issueVersion
Tell us which versions you are using:
- react-native-router-flux 4.0.0-beta.31
- react-native v0.45.1
Description
I have 2 scene in my app:
<Scene key="home" component={HomePage} initial={false} type={ActionConst.REPLACE}/>
<Scene key="splash" component={SplashScreen} hideNavBar initial={true} />
in the splash scene, I make it do some initial worksand then Actions.home({ type: ActionConst.REPLACE }) to home scene.
Expected behaviour
As expected, each time when the app is start , it will open “splash” and then reset to home
Actual behaviour
In Android, when I am in home scene and press the back button, the app closed. but when I re-open the app it seems like that the app have not come into the splash scene but come into home scene directly…
Steps to reproduce
- create 2 scene and one of them marked it as initial scene
- in the initial scene reset to another scene
- and press android back button to close the app
- when we re-open, the app will come into another scene
PS
My app used to integer with react-native-router-flux v3.x before and it works very well. I met this issue after I upgrade to v.4.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Reopening scene not working | Apple Developer Forums
When I first time start game and come into core game scene, everything is ok. I can open game menu and close it...
Read more >MTG Arena - HOW TO FIX Stuck on "Loading Initial Scene" on ...
Easy solution for how to fix the bug where MTG Arena is stuck forever on the “Loading Initial Scene” message when you try...
Read more >Continual crashing at "Loading Initial Scene" when launching ...
I have tried to redownload and reinstall the game, no difference. I am unsure what next steps to take.
Read more >"Loading Initial Scene" Loads Infinitely
Even with all other apps closed, it doesn't work. It starts loading, but it crashes every time after "loading initial settings".
Read more >How to avoid strange behavior when scene-based document ...
2/ The problem is the document windows opened automatically when the app is closed with a window open and then restarted.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am on it 👍
cc @daviscabral