aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/components/SplashScreenController.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/components/SplashScreenController.tsx')
-rw-r--r--apps/mobile/components/SplashScreenController.tsx14
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;
+}