question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

initial scene not working when re-open the app

See original GitHub issue

Version

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

  1. create 2 scene and one of them marked it as initial scene
  2. in the initial scene reset to another scene
  3. and press android back button to close the app
  4. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
daviscabralcommented, Aug 8, 2018

I am on it 👍

1reaction
aksonovcommented, Aug 8, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found