-
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
Hardware Back not working when on First Scene #2283
Comments
Same problem here |
Just pass prop backAndroidHandler to Router with own handler of back. Many users of RNRF didn't want to exit app for back button for some reason, so it works in such way. |
Ah okay, that seems to fix it. I used to use |
@aksonov |
Do you have hardware IOS back button?? |
Oh, sorry) |
Version
Tell us which versions you are using:
Expected behaviour
On Press on Hardware Back button on First Scene it should close the app.
Actual behaviour
App does not close.
Steps to reproduce
Here is my Router Component
const RouterComponent = () => {
return (
<Scene
key="login"
component={Login}
title={I18n.t('title_login')}
onEnter={isLoggedIn}
/>
<Scene
key="main"
component={Login}
title={I18n.t('title_login')}
/>
);
};
const isLoggedIn = () => {
const auth = AuthService.getAuthObject();
console.log(TAG, 'IsLoggedIn Check');
if (auth && auth.loggedIn) {
//Actions.home({ type: ActionConst.RESET });
}
};
The text was updated successfully, but these errors were encountered: