From 72cfbf41f30fc3c5a4169be85b9fad3bee67f732 Mon Sep 17 00:00:00 2001 From: billisdead Date: Mon, 22 Jun 2026 11:26:24 +0200 Subject: [PATCH] fix: revert splash screen overrides, remove redundant SafeAreaProvider expo-router 56 already calls _internal_preventAutoHideAsync() internally. Calling preventAutoHideAsync() at module level created a second user lock that blocked the native splash indefinitely on Android, causing a crash. SafeAreaProvider removed as expo-router's ExpoRoot already wraps with it. Keep SplashScreen.hideAsync() to release the splash after SecureStore reads. Co-Authored-By: Claude Sonnet 4.6 --- app/_layout.tsx | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index f96836a..e897587 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -2,13 +2,10 @@ import { useEffect } from "react"; import { Stack, router, SplashScreen } from "expo-router"; import { StatusBar } from "expo-status-bar"; import { GestureHandlerRootView } from "react-native-gesture-handler"; -import { SafeAreaProvider } from "react-native-safe-area-context"; import "../global.css"; import { Colors } from "@/constants/theme"; import { useSettings } from "@/hooks/useSettings"; -SplashScreen.preventAutoHideAsync(); - export default function RootLayout() { const { settings, ready } = useSettings(); @@ -25,25 +22,23 @@ export default function RootLayout() { }, [ready, settings.onboardingDone]); return ( - - - - - - - - - - - - + + + + + + + + + + ); }