-
Notifications
You must be signed in to change notification settings - Fork 0
/
font.txt
42 lines (27 loc) · 850 Bytes
/
font.txt
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
42
switch(FontReady){
case false:
return(
<AppLoading startAsync={LoadFontsAndRestoreToken}
onFinish={()=>SetFontReady(true)}
onError={() => {}}
/>
)
case true:
return(
<Onboarding
pages={pages}
titleStyles={styles.title}
imageContainerStyles={styles.imgContainer}
/>
)
}
const [FontReady,SetFontReady]=useState(false)
const useFonts=async ()=>{
await Font.loadAsync({
// 'zeyada':Zeyada_400Regular,
'audiowide':require('@expo-google-fonts/audiowide/Audiowide_400Regular.ttf'),
})
}
const LoadFontsAndRestoreToken = async () => {
await useFonts();
};