-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (28 loc) · 975 Bytes
/
App.js
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
import AppLoading from 'expo-app-loading';
import { useFonts } from 'expo-font';
import { StatusBar } from 'expo-status-bar';
import { NativeBaseProvider } from 'native-base';
import React from 'react';
import Routes from './navigation';
import theme from './utils/theme';
export default function App() {
let [fontsLoaded] = useFonts({
'Roboto-Light': require('./assets/fonts/Roboto/Roboto-Light.ttf'),
'Roboto-LightItalic': require('./assets/fonts/Roboto/Roboto-LightItalic.ttf'),
'Roboto-Regular': require('./assets/fonts/Roboto/Roboto-Regular.ttf'),
'Roboto-Medium': require('./assets/fonts/Roboto/Roboto-Medium.ttf'),
'Roboto-Bold': require('./assets/fonts/Roboto/Roboto-Bold.ttf'),
});
if (fontsLoaded) {
return (
<>
<NativeBaseProvider theme={theme()}>
<Routes />
</NativeBaseProvider>
<StatusBar style='auto' />
</>
);
} else {
return <AppLoading onError={console.warn} />;
}
}