diff --git a/apps/mobile/app/(app)/_layout.tsx b/apps/mobile/app/(app)/_layout.tsx index a0b028b9..744e95d5 100644 --- a/apps/mobile/app/(app)/_layout.tsx +++ b/apps/mobile/app/(app)/_layout.tsx @@ -8,8 +8,7 @@ import { theme } from '@/lib/theme' import { useUser } from '@clerk/clerk-expo' import { t } from '@lingui/macro' import { useLingui } from '@lingui/react' -import { Redirect, SplashScreen, Stack } from 'expo-router' -import { useEffect } from 'react' +import { Redirect, Stack } from 'expo-router' import { View } from 'react-native' export default function AuthenticatedLayout() { @@ -20,12 +19,6 @@ export default function AuthenticatedLayout() { const { shouldAuthLocal, setShouldAuthLocal } = useLocalAuth() useScheduleNotificationTrigger() - useEffect(() => { - if (isLoaded) { - setTimeout(() => SplashScreen.hideAsync(), 1000) - } - }, [isLoaded]) - if (!isSignedIn && isLoaded) { return } diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx index 86295b91..9db7b278 100644 --- a/apps/mobile/app/_layout.tsx +++ b/apps/mobile/app/_layout.tsx @@ -132,6 +132,8 @@ function RootLayout() { useNotificationObserver() useEffect(() => { + setTimeout(() => SplashScreen.hideAsync(), 2000) + const subscription = AppState.addEventListener('change', onAppStateChange) return () => subscription.remove()