-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
43 lines (37 loc) · 1.03 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
import React from 'react';
import { StyleSheet, View, StatusBar } from 'react-native';
import { Provider } from 'react-redux';
import firebase from 'firebase';
import { Root } from 'native-base';
import MainNavigation from './src/navigation/MainNavigation';
import store from './src/reducers';
import { MAIN_COLOR } from './src/constants';
import getEnvVars from './environment';
const { firebaseConfig } = getEnvVars();
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
}
console.disableYellowBox = true;
class App extends React.Component {
render() {
return (
<Provider store={store}>
<Root>
<StatusBar backgroundColor={MAIN_COLOR} barStyle="light-content" translucent={true} />
<View style={styles.container}>
<MainNavigation />
</View>
</Root>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignSelf: 'stretch',
justifyContent: 'flex-start'
}
});
export default App;