-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
43 lines (36 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
import React from "react";
import Toast from "react-native-toast-message";
import { StatusBar } from "expo-status-bar";
import { useFonts } from "expo-font";
import { AppLoading } from "expo";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import { store, persistor } from "./src/redux/index";
import AppStack from "./src/routes/AppStack";
import { YellowBox } from "react-native";
export default function App() {
const [fontsLoaded] = useFonts({
"LilyScriptOne-Regular": require("./src/assets/fonts/LilyScriptOne-Regular.ttf"),
"Mada-Light": require("./src/assets/fonts/Mada-Light.ttf"),
"Mada-Medium": require("./src/assets/fonts/Mada-Medium.ttf"),
"Mada-Regular": require("./src/assets/fonts/Mada-Light.ttf"),
"Mada-Bold": require("./src/assets/fonts/Mada-Bold.ttf"),
});
if (!fontsLoaded) {
return <AppLoading />;
}
YellowBox.ignoreWarnings(["Require cycle"]);
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<StatusBar style="light" />
<AppStack />
<Toast
ref={(ref) => Toast.setRef(ref)}
topOffset={50}
visibilityTime={400}
/>
</PersistGate>
</Provider>
);
}