-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (31 loc) · 1.02 KB
/
App.js
File metadata and controls
35 lines (31 loc) · 1.02 KB
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 { SafeAreaProvider } from 'react-native-safe-area-context';
import React, { useEffect } from 'react';
import { StatusBar, StyleSheet, View } from 'react-native';
import 'react-native-gesture-handler';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/es/integration/react';
import { AppNavigator } from './components/AppNavigator';
import configureStore from './components/redux/configureStore';
import { LoadingScreen } from './components/Screens/LoadingScreen';
export default function App() {
const { store, persistor } = configureStore();
return (
<Provider store={store}>
<PersistGate loading={<LoadingScreen />} persistor={persistor}>
<SafeAreaProvider>
<View style={styles.container}>
<StatusBar style='auto' />
<AppNavigator />
</View>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
textAlign: 'center',
justifyContent: 'center',
},
});