Back button will not send the app to the background
See original GitHub issueVersion
Tell us which versions you are using:
- react-native-router-flux 4.0.0-beta.40
- react-native 0.55.4
Expected behaviour
If you are navigating inside the app, after pressing multiple times back button on android, the app should be sent to the background the same way when you press the menu button
Actual behaviour
After pressing back button the app will come back to the initial screen (correct), but then it stays on the screen no matter how many times you press back button.
Just before this library was updated I had an issue where the back button would kill the app, so I fixed it and it was working perfectly. After updating flux to 4.0.0-beta.40
I have this issue .
Keep in mind that the scene structure did not change at all from what it was in the previous version
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Android back button not working as intended after background
Please try removing the attribute android:launchMode="singleInstance" in your activities, and check if it works.
Read more >How to Fix Home Button/Back Button is not Working on Android?
How to Fix Home Button/ Back Button is not Working on Android?Step 1: Open "Play Store" App.Step 2: Do a search for "Navigation...
Read more >How to Fix App Not Close When Press Back Button in Android
Some app will not close properly when you press back button in android devices, it will run in background and slow down your...
Read more >Back Button/Gesture does not close apps anymore - Reddit
I'm on SPB2. 210513.011 (Pixel 4a 5G) and the back Gesture does not close ("onDestroy") apps anymore. Same with the back button, if...
Read more >Provide custom back navigation - Android Developers
All Android devices provide a Back button for this type of navigation, so you should not add a Back button to your app's...
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
Same issue with “react-native-router-flux”: “^4.0.6” However, I fixed it after I tried to set the backHandler to false manually:
I wish that’s something helpful for you guys.
@wmonecke Hopefully you’ve resolved the problem already. But if you haven’t, you can do something like this.