-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (26 loc) · 1.02 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
import React from "react";
import { StatusBar } from "expo-status-bar";
import { NavigationContainer } from "@react-navigation/native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { Provider } from "react-redux";
import Toast from "react-native-toast-message";
import { PersistGate } from "redux-persist/integration/react";
import { persistor, store } from "@stores/store";
import { toastConfig } from "@components/toast";
import { Routes } from "@routes/routes";
import "./global.css";
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<StatusBar style='light' />
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NavigationContainer>
<Routes />
<Toast config={toastConfig} />
</NavigationContainer>
</PersistGate>
</Provider>
</GestureHandlerRootView>
);
}