remove unnecessary code
This commit is contained in:
parent
31f0a27a5a
commit
27557b171e
3 changed files with 3 additions and 9 deletions
|
|
@ -107,8 +107,7 @@ const launchApp = async (props: LaunchProps, resetNavigation = true) => {
|
|||
hasCurrentUser = Boolean(currentUserId);
|
||||
}
|
||||
|
||||
// invert this logic for onboardingViewed
|
||||
if ((LocalConfig.ShowOnboarding && onboardingViewed)) {
|
||||
if (LocalConfig.ShowOnboarding && !onboardingViewed) {
|
||||
return resetToOnboarding({...props, goToLoginServerUrl: serverUrl});
|
||||
}
|
||||
|
||||
|
|
@ -141,8 +140,7 @@ const launchApp = async (props: LaunchProps, resetNavigation = true) => {
|
|||
}
|
||||
}
|
||||
|
||||
// invert this logic for onboardingViewed
|
||||
if (LocalConfig.ShowOnboarding && !onboardingViewed) {
|
||||
if (!LocalConfig.ShowOnboarding || onboardingViewed) {
|
||||
return launchToServer(props, resetNavigation);
|
||||
}
|
||||
return resetToOnboarding(props);
|
||||
|
|
|
|||
|
|
@ -409,10 +409,6 @@ export function goToScreen(name: string, title: string, passProps = {}, options
|
|||
},
|
||||
};
|
||||
|
||||
if (name === Screens.SERVER) {
|
||||
console.log('\n\n** screen pass props', passProps, componentId, name, '\n\n');
|
||||
}
|
||||
|
||||
return Navigation.push(componentId, {
|
||||
component: {
|
||||
id: name,
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@
|
|||
"mmjstool": "mmjstool",
|
||||
"pod-install": "cd ios && bundle exec pod install",
|
||||
"postinstall": "patch-package && ./scripts/postinstall.sh",
|
||||
"preinstall": "",
|
||||
"preinstall": "npx solidarity",
|
||||
"prestorybook": "rnstl",
|
||||
"start": "react-native start",
|
||||
"storybook": "start-storybook -p 7007",
|
||||
|
|
|
|||
Loading…
Reference in a new issue