-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 hardware back button unexpected behavior while using drawer when app coming to foreground from background. #2873
Comments
@aksonov Have any idea about this? |
Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists If it is still actual, please ask @daviscabral because he works with Android |
@daviscabral @aksonov I also found out another situation when this bug occurs.
This may be related to I would love to assist further. I could create an example project If needed or test a fix. |
Okey I just migrated a part of my code to React Navigation and it looks like this issue is there as well (in both rohitgoyal case and my case). One difference though. When closing the scene from drawer (step 4), the opened modal is still visible (so that would somewhat explain that componentWillUnmount is never called). So I guess this is a React Navigation bug. |
@rohitgoyal Hi Guy, Have you solved the problem.I had the same problem. |
Version
Expected behaviour
Let's say i have screen_1 button on drawer and by clicking it I am going to screen_1. Now press the home button(App goes to background) and open the app again(App comes to foreground). Now when i press the android back button the app should go back to drawer screen (drawer in open state) and again pressing the back button should close the drawer.
Actual behaviour
I have screen_1 button on drawer and by clicking it I am going to screen_1. Now press the home button(App goes to background) and open the app again(App comes to foreground). Now when i press the android back button the app goes back to home screen (drawer in close state) and again pressing the back button open the screen_1 screen.
Steps to reproduce
Just have these routes. Have anything in Home, Screen_1 and SideMenu.
The text was updated successfully, but these errors were encountered: