-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Pressing back button not working as expected #2451
Comments
crossRT
changed the title
Pressing back button will restart the app
Pressing back button not working well
Oct 1, 2017
crossRT
changed the title
Pressing back button not working well
Pressing back button not working as expected
Oct 1, 2017
I believe this is because they're Drawer child scenes. <Router>
<Scene key="drawer" contentComponent={this.renderSideBar} drawer>
<Scene key="splashScreen" component={SplashScreen} initial hideNavBar/>
<Scene key="login" component={Login} hideNavBar/>
<Scene key="trips">
<Scene key="tripList" component={TripList} title="Trip List" initial />
<Scene key="tripDetails" component={TripDetails} title="Trip Detail" back/>
</Scene>
</Scene>
</Router> |
@mvanroon is correct, your current setup suggests that both of those |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Tell us which versions you are using:
Expected behaviour
When I click the back button, it SHOULD go back to the previous page.
Actual behaviour
When I press the back button, it goes back to the initial page.
Steps to reproduce
I have following scenes:
I enter to
tripDetails
fromtripList
, when I click the back button of top left oftripDetails
, it goes back to inital Splash Screen page.I also tried trigger
Actions.pop()
with theonLeft
event, but it's the same.My problem is: how should I make the "back" function working like usual, going back to the previous page in the stack, which is the
tripList
page.The text was updated successfully, but these errors were encountered: