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

[Android] the Android Back Button does not work #111

Open
JustinMi opened this issue Apr 19, 2020 · 2 comments
Open

[Android] the Android Back Button does not work #111

JustinMi opened this issue Apr 19, 2020 · 2 comments
Labels

Comments

@JustinMi
Copy link
Contributor

Most Android phones have a universal "magic" back button that roughly takes you to the previous thing you were looking at. It does not work as expected in the Android app. For example, if you log in, search a store, select the store, then hit the Android back button, you'd expect to be taken back to the search screen. But instead, it takes you to the login page.

@JustinMi
Copy link
Contributor Author

Also, in general, you shouldn't be able to hit back and go to the login screen ^

@wangannie
Copy link
Member

Note: requires converting MapScreen to a functional component to use useFocusEffecthook https://reactnavigation.org/docs/custom-android-back-button-handling/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants