-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
36 lines (29 loc) · 749 Bytes
/
App.tsx
File metadata and controls
36 lines (29 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import {
KiwiMaru_300Light,
KiwiMaru_400Regular,
KiwiMaru_500Medium,
useFonts,
} from "@expo-google-fonts/kiwi-maru";
import { ExpoRoot } from "expo-router";
import { ctx } from "expo-router/_ctx";
import * as SplashScreen from "expo-splash-screen";
import { useEffect } from "react";
import { useAuthBootstrap } from "@/hooks/useAuthBootstrap";
SplashScreen.preventAutoHideAsync();
export default function App() {
const [fontsLoaded] = useFonts({
KiwiMaru_300Light,
KiwiMaru_400Regular,
KiwiMaru_500Medium,
});
useAuthBootstrap();
useEffect(() => {
if (fontsLoaded) {
SplashScreen.hideAsync();
}
}, [fontsLoaded]);
if (!fontsLoaded) {
return null;
}
return <ExpoRoot context={ctx} />;
}