-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
executable file
·62 lines (54 loc) · 1.52 KB
/
App.js
File metadata and controls
executable file
·62 lines (54 loc) · 1.52 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import React from 'react';
import PropTypes from 'prop-types';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { AppLoading, Asset, Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';
import RootNavigation from './navigation/RootNavigation';
import { Provider } from 'react-redux';
import configureStore from './redux/store/configureStore';
import { createStore, applyMiddleware, compose } from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './redux/reducers';
import { getUser } from './redux/actions';
const store = configureStore();
export default class App extends React.Component {
state = {
isLoadingComplete: false
};
_loadResourcesAsync = async () => {
return Promise.all();
};
_handleFinishLoading = () => {
this.setState({ isLoadingComplete: true });
};
render() {
return (
<Provider store={store}>
<View style={styles.safeArea}>
<View style={styles.container}>
{Platform.OS === 'ios' && <StatusBar barStyle="light-content" />}
{Platform.OS === 'android' && <View style={styles.statusBarUnderlay} />}
<RootNavigation />
</View>
</View>
</Provider>
);
}
}
App.propTypes = {
skipLoadingScreen: PropTypes.bool
};
const styles = StyleSheet.create({
safeArea: {
flex: 1,
backgroundColor: '#000'
},
container: {
flex: 1,
backgroundColor: '#000'
},
statusBarUnderlay: {
height: 24,
backgroundColor: 'rgba(0,0,0,0.2)'
}
});