-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (39 loc) · 1.55 KB
/
App.tsx
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
37
38
39
40
41
import React from "react";
import ScreenStack from "./global/screens/util/ScreenStack";
import { useFonts } from 'expo-font';
import Loading from "./global/screens/util/Loading";
import { StatusBar } from "expo-status-bar";
export default function App() {
const fonts = [
"./assets/font/Poppins-Black.ttf",
"./assets/font/Poppins-BlackItalic.ttf",
"./assets/font/Poppins-Bold.ttf",
"./assets/font/Poppins-BoldItalic.ttf",
"./assets/font/Poppins-ExtraBold.ttf",
"./assets/font/Poppins-ExtraBoldItalic.ttf",
"./assets/font/Poppins-ExtraLight.ttf",
"./assets/font/Poppins-ExtraLightItalic.ttf",
"./assets/font/Poppins-Italic.ttf",
"./assets/font/Poppins-Light.ttf",
"./assets/font/Poppins-LightItalic.ttf",
"./assets/font/Poppins-Medium.ttf",
"./assets/font/Poppins-MediumItalic.ttf",
"./assets/font/Poppins-Regular.ttf",
"./assets/font/Poppins-SemiBold.ttf",
"./assets/font/Poppins-SemiBoldItalic.ttf",
"./assets/font/Poppins-Thin.ttf",
"./assets/font/Poppins-ThinItalic.ttf"
]
const [fontsLoaded] = useFonts({
"Poppins-Medium": require("./assets/font/Poppins-Medium.ttf"),
"Poppins-Regular": require("./assets/font/Poppins-Regular.ttf"),
"Poppins-Bold": require("./assets/font/Poppins-Bold.ttf"),
});
return (
<React.Fragment>
<StatusBar style="dark" />
{ fontsLoaded && <ScreenStack /> }
{ !fontsLoaded && <Loading /> }
</React.Fragment>
);
}