-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Warning: BackAndroid is deprecated. Please use BackHandler instead. #1597
Comments
This is not strictly an error related to the react-navigation, you just need to change the physical android handler to:
|
@kelset would you put this in your top-level component? I'm not using BackHandler myself so it must be used somewhere in react-navigation? I just upgraded to 44 and see this now. |
same here, after I started using StackNavigator... |
@acomito yes I've added those lines to the top-level component. I am running the same React Native version (0.44) but I'm pointing react-navigation to |
@kelset I'm also using 44 (but via expo 17) and I believe I'm pointing to master. But I am still seeing the error. I feel like this has to do something with react-navigation and maybe
|
Ok, apparently it will be fixed soon, they merged a fix: #1520 |
1.0.0-beta.10 fixes it for me. |
ok, good |
Fixed in 9027e1a |
I could fix it with this aksonov/react-native-router-flux#1842 (comment) |
I'm now getting this issue after updating to react-native 0.58.3 EDIT: as it turns out the problem was a different package, react-native-modal-box, sorry :) |
There is a warning after the upgrade of react-navigation.
Warning: BackAndroid is deprecated. Please use BackHandler instead.
The text was updated successfully, but these errors were encountered: