-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
56 lines (51 loc) · 1.48 KB
/
Copy pathApp.js
File metadata and controls
56 lines (51 loc) · 1.48 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
import React, { Component } from 'react';
import { StyleSheet, View, StatusBar } from 'react-native';
import { Provider } from 'react-redux';
import { persistor, store } from './src/store';
import { ScreenOrientation } from 'expo';
import firebase from 'firebase';
import { PersistGate } from 'redux-persist/integration/react';
import AppNavigation from './src/navigation/AppNavigation';
if (__DEV__) {
import('./ReactotronConfig').then(() =>
console.log('Reactotron Configured')
);
}
class App extends Component {
async componentDidMount() {
firebase.initializeApp({
apiKey: 'AIzaSyB5gN9cDVqIEPWoopB0k00cOQ4NSnbRLn4',
authDomain: 'loqa-auth.firebaseapp.com',
databaseURL: 'https://loqa-auth.firebaseio.com',
projectId: 'loqa-auth',
storageBucket: '',
messagingSenderId: '933401172528',
appId: '1:933401172528:web:b6c7a17e5a6714d0',
});
await ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.ALL);
}
render() {
return (
<Provider store={store}>
<PersistGate persistor={persistor} loading={null}>
<View style={styles.container}>
<StatusBar translucent={true} backgroundColor={'#162F71'} />
<AppNavigation />
</View>
</PersistGate>
</Provider>
/* <View style={styles.container}>
<StyledCard />
</View>*/
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
/* alignItems: 'center',
justifyContent: 'center',*/
backgroundColor: '#eee',
},
});
export default App;