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

how to reset stack on nested scenes in tabBar ? #3019

Closed
Stettinum opened this issue Apr 27, 2018 · 2 comments
Closed

how to reset stack on nested scenes in tabBar ? #3019

Stettinum opened this issue Apr 27, 2018 · 2 comments

Comments

@Stettinum
Copy link

i have tabbar with nested scenes :

      <Scene key="root"
          icon={TabIcon}
          title="Root"
          navBar={Navbar}
      >

        <Scene
          initial
          key={'keyA'}
          component={ComponentA}
        />

        <Scene
          key={'keyB'}
          component={ComponentB}
        />

      </Scene>

when i got to scene 'keyA' and after that navigate to scene 'keyB' its pushed to stack. When i navigate to another tab, and switch back to tab 'root' current scene is 'keyB', how to reset stack and after switch back has 'keyA' as active ?
Regards

@kr0000
Copy link

kr0000 commented May 31, 2018

The same issue

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please check 4.0.0-beta.41 and Example with backToInitial prop

@aksonov aksonov closed this as completed Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants