-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
37 lines (29 loc) · 957 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
31
32
33
34
35
36
37
import React, { useState } from "react";
import * as Font from "expo-font";
import { AppLoading } from "expo";
import MinhasDenunciasNavigator from './navigation/MinhasDenunciasNavigator';
console.disableYellowBox = true;
const fetchFonts = () => {
return Font.loadAsync({
roboto: require("./assets/fonts/Roboto-Regular.ttf"),
"roboto-italic": require("./assets/fonts/Roboto-Italic.ttf"),
"roboto-bold": require("./assets/fonts/Roboto-Bold.ttf"),
"roboto-bold-italic": require("./assets/fonts/Roboto-BoldItalic.ttf")
});
};
console.ignoredYellowBox = ['Warning: Each', 'Warning: Failed'];
export default function App() {
const [dataLoaded, setDataLoaded] = useState(false);
if (!dataLoaded) {
return (
<AppLoading
startAsync={fetchFonts}
onFinish={() => {
setDataLoaded(true);
}}
onError={err => console.log(err)}
/>
);
}
return <MinhasDenunciasNavigator />
}