-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (31 loc) · 969 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
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import Main from './components/MainComponent';
import { Provider } from 'react-redux';
import { ConfigureStore } from './redux/configureStore';
import { PersistGate } from 'redux-persist/es/integration/react';
import { Loading } from './components/LoadingComponent'
const {persistor ,store} = ConfigureStore();
export default function App() {
return (
<Provider store={store}>
<PersistGate
loading={<Loading />}
persistor={persistor}>
<SafeAreaProvider style={styles.container} >
<Main />
</SafeAreaProvider>
</PersistGate>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
color:'#512DA8',
marginTop:0,
backgroundColor:'#512DA8'
},
});