diff options
| author | Mohamed Bassem <me@mbassem.com> | 2026-02-01 15:59:11 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2026-02-01 15:59:11 +0000 |
| commit | fdc53eee79fdb5033b9ab46e6969917f6cd59bb0 (patch) | |
| tree | 44d923bf2d2482cfabcffdadc48a0c2ab537685b /apps/mobile/components/SplashScreenController.tsx | |
| parent | 15d9d9897487d5e1881f75a4d92af37f6937eb80 (diff) | |
| download | karakeep-fdc53eee79fdb5033b9ab46e6969917f6cd59bb0.tar.zst | |
fix(mobile): fix some mobile warning after expo 54 upgrade
Diffstat (limited to 'apps/mobile/components/SplashScreenController.tsx')
| -rw-r--r-- | apps/mobile/components/SplashScreenController.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/mobile/components/SplashScreenController.tsx b/apps/mobile/components/SplashScreenController.tsx new file mode 100644 index 00000000..52c80415 --- /dev/null +++ b/apps/mobile/components/SplashScreenController.tsx @@ -0,0 +1,14 @@ +import { SplashScreen } from "expo-router"; +import useAppSettings from "@/lib/settings"; + +SplashScreen.preventAutoHideAsync(); + +export default function SplashScreenController() { + const { isLoading } = useAppSettings(); + + if (!isLoading) { + SplashScreen.hide(); + } + + return null; +} |
