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

Press Android back button immediately exit application #2182

Closed
cporawat opened this issue Aug 4, 2017 · 5 comments
Closed

Press Android back button immediately exit application #2182

cporawat opened this issue Aug 4, 2017 · 5 comments

Comments

@cporawat
Copy link

cporawat commented Aug 4, 2017

Version

  • react-native-router-flux v4.0.0-beta.16
  • react-native v0.47.1

Expected behaviour

When I go to second scene and press Android back button, it should back to previous page (like Actions.pop())

Actual behaviour

It exit from application from every pages I tried

Steps to reproduce

I just upgrade version from v4.0.0-beta.14 to v4.0.0-beta.16 and unexpected behaviour occurred

  1. Navigate to second scene or deeper
  2. Press Android back button and it will exit from application.
@ahmadms1
Copy link

ahmadms1 commented Aug 5, 2017

I'm having the same problem. Even tried to override it with BackHandler but it will still directly exit from application.

@ahmadms1
Copy link

ahmadms1 commented Aug 5, 2017

On second thought, I applied the BackHandler wrongly. Please take a look at the workaround suggested in #2040 using BackHandler. Cheers!

@cporawat
Copy link
Author

cporawat commented Aug 5, 2017

Thanks for your help, @ahmadms1. This workaround solve my problem

@durgesh387
Copy link

i was unable to solve the problem even after the work around suggested in #2040.

@daviscabral
Copy link
Collaborator

If you think you found a bug - please open a new issue with all the information asked in the template. Beta versions are not supported - I recommend you to download the most recent release to test.

Repository owner locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants