-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (30 loc) · 852 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
31
32
33
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {SafeAreaView, StatusBar, ActivityIndicator} from 'react-native';
import {PersistGate} from 'redux-persist/lib/integration/react';
import Navigation from './src/screens/navigation';
import {Provider} from 'react-redux';
import {store, persistor} from './src/store';
import Modal from './src/components/Modal/index';
const App = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={{flex: 1}}>
<Provider store={store}>
<PersistGate loading={<ActivityIndicator />} persistor={persistor}>
<Modal />
<Navigation />
</PersistGate>
</Provider>
</SafeAreaView>
</>
);
};
export default App;