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

popTo can't find scene #3118

Closed
SexySix opened this issue Jul 8, 2018 · 1 comment
Closed

popTo can't find scene #3118

SexySix opened this issue Jul 8, 2018 · 1 comment

Comments

@SexySix
Copy link

SexySix commented Jul 8, 2018

Version

  • react-native-router-flux v4.0.0-beta.32 (v3 is not supported)
  • react-native v0.52.3

Code

my code like following:

    <Router>
        <Modal hideNavBar>
          <Stack
            key="mainStack"
          >
            <Tabs
              key="tab"
            >
              <Scene key="home"/>
            </Tabs>
            <Scene key="some"/>
          </Stack>
          <Stack key="loginStack">
            <Scene key="login"/>
            <Scene key="register"/>
          </Stack>
        </Modal>
      </Router>

Expected behaviour

When current scene is 'register', Actions.popTo('home') should back to 'home'

Actual behaviour

When current scene is 'register', Actions.popTo('home') doesn't work.
And In 4.0.0-beta.31, it works.

#3043 may cause this bug.

P.S.My English is poor. Sorry.

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Please check latest 4.0.0-beta.40, Example Login->Login2->login3->popToRoot uses popTo function

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants