-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
52 lines (47 loc) · 1.24 KB
/
App.tsx
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import "react-native-gesture-handler";
import React from "react";
import { StatusBar } from "expo-status-bar";
import AppLoading from "expo-app-loading";
import { NavigationContainer } from "@react-navigation/native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { ActionSheetProvider } from "@expo/react-native-action-sheet";
import { ToastProvider } from "react-native-fast-toast";
import {
useFonts,
Nunito_300Light,
Nunito_400Regular,
Nunito_600SemiBold,
Nunito_700Bold,
Nunito_900Black,
} from "@expo-google-fonts/nunito";
import AppNavigator from "./src/navigation/app-navigator";
/**
* The root app component
* @returns
*/
export default function App() {
let [fontsLoaded] = useFonts({
Nunito_300Light,
Nunito_400Regular,
Nunito_600SemiBold,
Nunito_700Bold,
Nunito_900Black,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<>
<ToastProvider placement="top">
<ActionSheetProvider>
<SafeAreaProvider>
<NavigationContainer>
<AppNavigator />
<StatusBar style="auto" />
</NavigationContainer>
</SafeAreaProvider>
</ActionSheetProvider>
</ToastProvider>
</>
);
}