-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
46 lines (43 loc) · 1.37 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import 'react-native-gesture-handler';
import {StatusBar, StyleSheet} from 'react-native';
import {Provider} from 'react-redux';
import {PersistGate} from 'redux-persist/integration/react';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import UserNavigation from './Source/Pages/UserNavigation';
import {store} from './Source/Redux/store/store';
import persistStore from 'redux-persist/es/persistStore';
import {MenuProvider} from 'react-native-popup-menu';
import {initializeApp} from 'firebase/app';
import firebaseConfig from './firebaseConfig';
let persistor = persistStore(store);
initializeApp(firebaseConfig);
const App = () => {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<SafeAreaProvider
initialMetrics={{
frame: {x: 0, y: 0, width: 0, height: 0},
insets: {top: 0, left: 0, right: 0, bottom: 0},
}}>
<MenuProvider>
<UserNavigation />
</MenuProvider>
<StatusBar
barStyle={'dark-content'}
backgroundColor={'#FFF'}></StatusBar>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
};
const styles = StyleSheet.create({});
export default App;