-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (36 loc) · 1.23 KB
/
App.tsx
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
import NavigatorContainerTemplate from '@src/navigation/NavigatorContainerTemplate';
import React, {useEffect} from 'react';
import { StatusBar, StyleSheet } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { Host } from 'react-native-portalize';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import RNBootSplash from "react-native-bootsplash";
import { Provider } from 'react-redux';
import { store } from '@src/store/store';
import Colors from '@src/styles/Colors';
const App = () => {
useEffect(() => {
RNBootSplash.hide();
}, []);
return (
<GestureHandlerRootView style={styles.rootContainer}>
<Provider store={store}>
<SafeAreaProvider style={styles.container}>
<StatusBar translucent barStyle="dark-content" backgroundColor={Colors.white} />
<Host>
<NavigatorContainerTemplate />
</Host>
</SafeAreaProvider>
</Provider>
</GestureHandlerRootView>
);
};
const styles = StyleSheet.create({
rootContainer: {
flex: 1,
},
container: {
flex: 1,
},
});
export default App;