always navigate to first run if not completed
This commit is contained in:
parent
e901e81074
commit
2ddfc1eaf8
1 changed files with 13 additions and 17 deletions
|
@ -44,7 +44,7 @@ class FirstRunScreen extends React.PureComponent {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (NativeModules.FirstRun) {
|
// FirstRun module should always be present (in order to detect first run status)
|
||||||
NativeModules.FirstRun.isFirstRun().then(firstRun => {
|
NativeModules.FirstRun.isFirstRun().then(firstRun => {
|
||||||
AsyncStorage.removeItem(Constants.KEY_FIRST_RUN_EMAIL);
|
AsyncStorage.removeItem(Constants.KEY_FIRST_RUN_EMAIL);
|
||||||
AsyncStorage.removeItem(Constants.KEY_EMAIL_VERIFY_PENDING);
|
AsyncStorage.removeItem(Constants.KEY_EMAIL_VERIFY_PENDING);
|
||||||
|
@ -58,10 +58,6 @@ class FirstRunScreen extends React.PureComponent {
|
||||||
this.launchSplashScreen();
|
this.launchSplashScreen();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
// The first run module was not detected. Go straight to the splash screen.
|
|
||||||
this.launchSplashScreen();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
|
Loading…
Reference in a new issue