-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
35 lines (33 loc) · 1.22 KB
/
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
31
32
33
34
35
import React from "react";
import FlashMessage from "react-native-flash-message";
import "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import Routes from "./app/Navigations/Route";
import ActionSheets from "./app/components/ActionSheets";
import CustomStatusBar from "./app/components/CustomStatusBar";
import FontProvider from "./app/components/FontsProvider";
import Loading from "./app/components/Loading";
import NetworkConnectivity from "./app/components/NetworkConnectivity";
import { persistor, store } from "./app/features/app/store";
const App = () => {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<FontProvider>
<SafeAreaProvider>
<CustomStatusBar />
<NetworkConnectivity>
<Routes />
<FlashMessage style={{ paddingTop: 30 }} position="top" />
<ActionSheets />
<Loading />
</NetworkConnectivity>
</SafeAreaProvider>
</FontProvider>
</PersistGate>
</Provider>
);
};
export default App;