Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Fix logged out offline startup #2318

Merged
merged 2 commits into from
Nov 29, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions packages/mobile/src/screens/root-screen/RootScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,17 @@ export const RootScreen = ({ isReadyToSetupBackend }: RootScreenProps) => {
() => dispatch(enterBackground())
)

const canDismissSplashScreen =
raymondjacobson marked this conversation as resolved.
Show resolved Hide resolved
accountStatus === Status.SUCCESS || accountStatus === Status.ERROR
return (
<>
<SplashScreen
canDismiss={
accountStatus === Status.SUCCESS || accountStatus === Status.ERROR
}
/>
<SplashScreen canDismiss={canDismissSplashScreen} />
<Stack.Navigator
screenOptions={{ gestureEnabled: false, headerShown: false }}
>
{updateRequired ? (
<Stack.Screen name='UpdateStack' component={UpdateRequiredScreen} />
) : !hasAccount ? (
) : canDismissSplashScreen && !hasAccount ? (
<Stack.Screen name='SignOnStack' component={SignOnScreen} />
) : (
<Stack.Screen name='HomeStack' component={AppDrawerScreen} />
Expand Down