question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent Android back button behavior while navigated to a modal view

See original GitHub issue

If 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:

  1. Open the settings modal
  2. Press the back button

Platform:

Android

Notes/Photos/Videos:

Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/157248 Upwork link: https://www.upwork.com/jobs/~016d2a711284ef2fc7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:56 (55 by maintainers)

github_iconTop GitHub Comments

1reaction
ahmedahtazazcommented, Apr 7, 2021

@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.

1reaction
ahmedahtazazcommented, Apr 7, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found