aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/components/SplashScreenController.tsx
blob: 52c804158c2d075b98174b6443b723c952c3a0e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}