Inconsistent Android back button behavior while navigated to a modal view
See original GitHub issueIf you haven’t already, check out our contributing guidelines for onboarding!
Expected Result:
The Android hardware back button should work when pressed.
Actual Result:
When you open the settings page the first back button press is ignored (as if an extra invisible page was added to the page stack), but the second and third back button press work as expected.
Action Performed:
- Open the settings modal
- Press the back button
Platform:
Android
Notes/Photos/Videos:
- This issue is caused by a bug in
react-navigation
and must be fixed in that repo first. - See: https://github.com/react-navigation/react-navigation/issues/9364
- Workarounds will not be accepted.
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/157248 Upwork link: https://www.upwork.com/jobs/~016d2a711284ef2fc7
Issue Analytics
- State:
- Created 2 years ago
- Comments:56 (55 by maintainers)
Top Results From Across the Web
Inconsistent Android back button behavior while navigated to ...
Open the settings modal; Press the back button. Platform: Android. Notes/Photos/Videos: This issue is caused by a bug in react-navigation and ...
Read more >Android 9 inconsistent behavior with Settings actions with ...
On android 8 there is no issue because the top back arrow is not present and the back button returns to my app....
Read more >The most frustrating thing about iOS, coming from Android ...
An app can use modal navigation but requires you to hit the back button in the top left. It can use push notifications...
Read more >Custom Android back button behavior - React Navigation
By default, when user presses the Android hardware back button, react-navigation will pop a screen or exit the app if there are no...
Read more >How should Android back button behave when it's not ...
By default an Android application minimizes and returns to the home screen when it is no longer possible to go back further inside...
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
@parasharrajat seems like an npm cli version issue. Some reference issues https://github.com/npm/cli/issues/2000 and https://github.com/npm/cli/issues/2119.
@parasharrajat yes force upgrading this dependancy is a way of doing this. But in this case we will have to perform a full testing cycle on this app to be sure about all the issues which we might face.
I think this full testing is not in the scope of this issue. So I will try to force upgrade the dependancy and share my results which are related to this issue.