-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
43 lines (41 loc) · 1.26 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
if (__DEV__) {
import('./ReactotronConfig').then(() =>
console.log('Reactotron Configured')
);
}
import React, { useEffect } from 'react';
import { StyleSheet, Text, View, StatusBar, Platform } from 'react-native';
import AppNavigator from './src/navigation/AppNavigation';
import { BACKGROUND_COLOR } from './src/constants/style';
import { AppLoading, SplashScreen } from 'expo';
import { Provider } from 'react-redux';
import { store, persistor } from './src/store/store';
import { PersistGate } from 'redux-persist/integration/react';
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Remote debugger']);
export default function App() {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<View style={styles.container}>
<StatusBar
backgroundColor={'#000'}
barStyle="light-content"
translucent={true}
/>
<AppNavigator />
</View>
</PersistGate>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: StatusBar.currentHeight,
backgroundColor: BACKGROUND_COLOR,
},
});