-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (27 loc) · 898 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
29
30
import {StyleSheet, Text, View, SafeAreaView} from 'react-native';
import React, {useEffect} from 'react';
import {NavigationContainer, DefaultTheme} from '@react-navigation/native';
import Route from './src/Navigation/Route';
import SplashScreen from 'react-native-splash-screen';
import Toast from 'react-native-toast-message';
import {Provider} from 'react-redux';
import {store} from './src/Redux/store';
import {PersistGate} from 'redux-persist/integration/react';
import {persistStore} from 'redux-persist';
const App = () => {
let persistor = persistStore(store);
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<SafeAreaView style={{flex: 1}}>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<Route />
<Toast />
</PersistGate>
</Provider>
</SafeAreaView>
);
};
export default App;