Skip to content

Hardware Back not working when on First Scene #2283

@tusharv-bidchat

Description

@tusharv-bidchat

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions