-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
32 lines (27 loc) · 1.01 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
import { NavigationContainer } from '@react-navigation/native'
import { useFonts } from 'expo-font'
// Realm Provider
import { RealmProvider } from './src/models/ModelContext'
// Navigator
import { DefaultNavigator } from './src/navigators/DefaultNavigator'
export default function App() {
const [fontsLoaded] = useFonts({
// MonaSans
'MonaSansCondensed-Light': require('./assets/MonaSans/MonaSansCondensed-Light.otf'),
'MonaSansCondensed-Regular': require('./assets/MonaSans/MonaSansCondensed-Regular.otf'),
'MonaSansCondensed-Bold': require('./assets/MonaSans/MonaSansCondensed-Bold.otf'),
'MonaSans-Bold': require('./assets/MonaSans/MonaSans-Bold.otf'),
// HubotSans
'HubotSans-Light': require('./assets/HubotSans/Hubot-Sans-Light.otf'),
'HubotSans-Regular': require('./assets/HubotSans/Hubot-Sans-Regular.otf'),
'HubotSans-Bold': require('./assets/HubotSans/Hubot-Sans-Bold.otf'),
})
if (!fontsLoaded) {
return null
}
return (
<NavigationContainer>
<DefaultNavigator />
</NavigationContainer>
)
}