-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
51 lines (42 loc) · 1.12 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
44
45
46
47
48
49
50
51
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React,{Component} from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { Ionicons } from 'react-native-vector-icons';
import RootNavigation from './navigation/RootNavigation';
import * as firebase from 'firebase';
const config = {
apiKey: "AIzaSyDGi_zZIX7naqsyvGFcKt4uYtTb6N6boEs",
authDomain: "diuquestions.firebaseapp.com",
databaseURL: "https://diuquestions.firebaseio.com",
projectId: "diuquestions",
storageBucket: "diuquestions.appspot.com",
messagingSenderId: "319202974092"
};
firebase.initializeApp(config);
export default class App extends Component<{}> {
state = {
isLoadingComplete: false,
};
render() {
return (
<View style={styles.container}>
<StatusBar barStyle="default" backgroundColor='#154120' />
<RootNavigation />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
statusBarUnderlay: {
height: 24,
backgroundColor: 'rgba(0,0,0,0.2)',
},
});