Changed behavior of scenes into stack (always opens the first one after switching)
See original GitHub issueVersion
- react-native-router-flux v4.0.1
- react v16.5
- react-native v0.57
Expected behaviour
I’d like to save behaviour from previous versions of scenes into stacks.
We have stacks with scenes (tab stacks, actually). We navigate in one stack between scenes, get scene №3 (for example) and tap on tab for entering another stack.
When we’ll open previous stack, we get scene №3 (like at the moment we left this stack) and continue to use the app
Actual behaviour
When we’ll open previous stack, we’ll lose our state and see a pop to first scene in stack.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Monogame, Nez: Switching scenes, opening menu
The basic principle is that there is a stack of objects(scenes in this case), and each time a new scene begins you add...
Read more >Tasks and the back stack | Android Developers
When the current activity starts another, the new activity is pushed on the top of the stack and takes focus.
Read more >Auto Layout Guide: Working with Constraints in Interface Builder
For all three options, start by dragging your views and controls from the Object library onto the scene. Resize and position them as...
Read more >Stack Navigator | React Navigation
One thing to keep in mind is that while @react-navigation/stack is extremely ... React Navigation will change it to screen automatically so that...
Read more >Trimming clips in Adobe Premiere Pro
After you mark In and Out points, you can always change your mind before you edit the clip into the sequence. Drag the...
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
@Q8hma Everything is cool, there was a little misundertanding. If you want to preserve the behavior which
backToInitial
did erlier, just remove it from stack property. This is the default behaviour for now. If your goal is to reset scene and pop initial every time you touch tabbar, addbackToInitial
.So just remove
backToInitial
was fine for meWhat’s the status on this? Is there a simple workaround in the meantime? Really appreciate the work you guys put in. I’m using v4.0.5.