generated from Lorenalgm/marvel-heroes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (24 loc) · 756 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
import React from 'react';
import { StatusBar } from 'expo-status-bar';
import AppLoading from 'expo-app-loading';
import { useFonts } from 'expo-font';
import Routes from './src/Routes';
export default function App() {
let [fontsLoaded] = useFonts({
'Gilroy-Bold': require('./src/assets/fonts/Gilroy-Bold.ttf'),
'Gilroy-Heavy': require('./src/assets/fonts/Gilroy-Heavy.ttf'),
'Gilroy-Medium': require('./src/assets/fonts/Gilroy-Medium.ttf'),
'Gilroy-Regular': require('./src/assets/fonts/Gilroy-Regular.ttf'),
'Gilroy-Semibold': require('./src/assets/fonts/Gilroy-Semibold.ttf')
})
if (!fontsLoaded) {
return <AppLoading />;
}else{
return (
<>
<StatusBar style="auto" />
<Routes />
</>
);
}
}