-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
28 lines (26 loc) · 853 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 AppLoading from "expo-app-loading";
import { useFonts } from "expo-font";
import { StatusBar } from "expo-status-bar";
import React from "react";
import { AuthProdiver } from "./contexts/authContext.js";
import { LocationProvider } from "./contexts/locationContext.js";
import MainTabContainer from "./navigation/mainTab";
export default function App() {
let [fontsLoaded] = useFonts({
"exo-regular": require("./assets/fonts/Exo-Regular.ttf"),
"exo-bold": require("./assets/fonts/Exo-Bold.ttf"),
"exo-semibold": require("./assets/fonts/Exo-SemiBold.ttf"),
});
if (fontsLoaded) {
return (
<LocationProvider>
<AuthProdiver>
<StatusBar animated={true} style="light" />
<MainTabContainer />
</AuthProdiver>
</LocationProvider>
);
} else {
return <AppLoading />;
}
}