-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (27 loc) · 793 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 React, { useEffect } from "react";
import Navigators from "./src/components/Navigator";
import { ThemeController } from "./src/components/ThemeController";
import { useFonts, OpenSans_400Regular } from "@expo-google-fonts/open-sans";
import { Montserrat_400Regular } from "@expo-google-fonts/montserrat";
import { setCustomText } from "react-native-global-props";
import { AppLoading } from "expo";
export default function App() {
let [fontsLoaded] = useFonts({
OpenSans_400Regular,
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
const customTextProps = {
style: {
fontFamily: "OpenSans_400Regular",
},
};
setCustomText(customTextProps);
}
return (
<ThemeController>
<Navigators />
</ThemeController>
);
}