-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Version
Tell us which versions you are using:
- react-native-router-flux v4.0.0-beta.18
- react-native v0.47.1
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 });
}
};
Metadata
Metadata
Assignees
Labels
No labels