-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
37 lines (35 loc) · 1.08 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
if (__DEV__) {
import('./ReactotronConfig').then(() =>
console.log('Reactotron Configured')
);
}
import React, { useState, useEffect } from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { Provider } from 'react-redux';
import { store, persistor } from './src/store/store';
import { PersistGate } from 'redux-persist/integration/react';
import AppNavigator from './src/navigation/AppNavigator';
import { BACKGROUND_COLOR } from './src/constants/Colors';
export default function App(props) {
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,
backgroundColor: BACKGROUND_COLOR,
paddingTop: StatusBar.currentHeight,
},
});