Merge pull request #83 from lbryio/first-run-navigation

always navigate to first run if not completed
This commit is contained in:
Akinwale Ariwodola 2019-11-18 06:52:04 +01:00 committed by GitHub
commit e5c6270d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 => {
AsyncStorage.removeItem(Constants.KEY_FIRST_RUN_EMAIL);
AsyncStorage.removeItem(Constants.KEY_EMAIL_VERIFY_PENDING);
@ -58,10 +58,6 @@ class FirstRunScreen extends React.PureComponent {
this.launchSplashScreen();
}
});
} else {
// The first run module was not detected. Go straight to the splash screen.
this.launchSplashScreen();
}
}
componentWillReceiveProps(nextProps) {