-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
72 lines (62 loc) · 1.62 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import React, {Component} from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Icon } from 'react-native-elements';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import Main from "./components/Main";
import DrawerNavigator from "./components/Navigation/DrawerNavigator";
import { Provider } from 'react-redux';
import store from './components/store/configStore';
import { connect } from 'react-redux';
import firebase from "firebase";
const config = {
apiKey: "AIzaSyDUqEXRXyepvQZtDRXDaNu6I9kdLlO4hHI",
authDomain: "secualert-cd941.firebaseapp.com",
databaseURL: "https://secualert-cd941.firebaseio.com",
projectId: "secualert-cd941",
storageBucket: "secualert-cd941.appspot.com",
messagingSenderId: "782760178748",
appId: "1:782760178748:web:9ae6f2cbb70be7cedebf39",
measurementId: "G-QPNH96LKTE"
};
class App extends Component {
constructor () {
super();
firebase.initializeApp(config)
}
render() {
return (
<Provider store={store}>
<DrawerNavigator/>
</Provider>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#20232A',
paddingTop: "6%",
},
header: {
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
width: "100%",
color: "white",
backgroundColor: "#353a44"
},
title: {
marginRight: "30%",
textAlign: "center",
color: "white",
fontSize: 30
},
text: {
fontSize: 30,
color: "white",
paddingTop: "50%",
textAlign: "center"
}
});
export default App;