-
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
BackHandler not working in initial Scene #2413
Comments
Same for me... |
Same here... |
<Router
backAndroidHandler={() => {
if (Actions.currentScene == "name your Scene") {
if (backLoginScene == false) {
ToastAndroid.show("Click back again to exit.", ToastAndroid.SHORT);
backLoginScene = !backLoginScene;
return true;
} else {
backLoginScene = false;
BackHandler.exitApp();
}
return false;
}}}> |
You must add backAndroidHandler in Router |
my version is 4.0.0-beta.23 |
@Maxitk Please check latest master now. |
@aksonov ok,i will try it tomorrow,thanks... |
@aksonov i have tried it a moment ago,but the same as before |
please try it.<Router backAndroidHandler={() => {}}> |
I'm having the same problem. |
Latest Example works fine with hardware back button |
Version
Tell us which versions you are using:
Expected behaviour
exit app
Actual behaviour
not working
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
The text was updated successfully, but these errors were encountered: