mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-21 17:27:28 +08:00
Update
This commit is contained in:
@@ -10,6 +10,7 @@ import { useEffect } from "react";
|
||||
import { Platform } from "react-native";
|
||||
|
||||
import { useColorScheme } from "@/hooks/useColorScheme";
|
||||
import { initializeApi } from "@/services/api";
|
||||
|
||||
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
||||
SplashScreen.preventAutoHideAsync();
|
||||
@@ -29,6 +30,10 @@ export default function RootLayout() {
|
||||
}
|
||||
}, [loaded, error]);
|
||||
|
||||
useEffect(() => {
|
||||
initializeApi();
|
||||
}, []);
|
||||
|
||||
if (!loaded && !error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user