-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (30 loc) · 1002 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
34
35
36
import {NavigationContainer} from '@react-navigation/native';
import React, {useEffect} from 'react';
import {Platform, StatusBar} from 'react-native';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import Colors from './source/constants/Colors';
import StackNav from './source/navigation/StackNav';
import firestore from '@react-native-firebase/firestore';
import RNBootSplash from 'react-native-bootsplash';
import {requestExternalStoragePermission} from './source/utilis/Functions';
firestore().settings({
persistence: false,
});
StatusBar.setBarStyle('light-content');
if (Platform.OS === 'android') {
StatusBar.setBackgroundColor(Colors.bgMain);
}
RNBootSplash.hide({fade: true});
const App = () => {
useEffect(() => {
requestExternalStoragePermission();
}, []);
return (
<NavigationContainer>
<GestureHandlerRootView style={{flex: 1}}>
<StackNav />
</GestureHandlerRootView>
</NavigationContainer>
);
};
export default App;