-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
40 lines (32 loc) · 931 Bytes
/
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import React, { useEffect } from 'react';
import Navigator from './app/Navigation/NavigationStack';
import SplashScreen from "react-native-splash-screen";
import configureStore from "./app/Store"
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { ActivityIndicator } from 'react-native';
const { persistor, store } = configureStore()
const App = () => {
useEffect(() => {
setTimeout(() => {
SplashScreen.hide();
}, 500)
}, [])
return (
<Provider store={store}>
<PersistGate loading={<ActivityIndicator />} persistor={persistor}>
<Navigator />
</PersistGate>
</Provider>
);
};
export default App;