-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
50 lines (39 loc) · 1.13 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
import React, {Component} from 'react';
import {View, Text} from 'react-native';
import {Provider, store} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import reducers from './src/reducers';
import firebase from 'firebase';
import LoginForm from './src/components/LoginForm';
import ReduxThunk from 'redux-thunk';
import {Header} from './src/components/common';
import Router from './src/Router';
class App extends Component{
componentWillMount(){
var config = {
apiKey: 'AIzaSyC9TxGjHZC_c2YCmXogl9BFFzr4CwFThSw',
authDomain: 'manager-7f7c5.firebaseapp.com',
databaseURL: 'https://manager-7f7c5.firebaseio.com',
projectId: 'manager-7f7c5',
storageBucket: 'manager-7f7c5.appspot.com',
messagingSenderId: '1020550055483'
};
firebase.initializeApp(config);
};
render(){
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
return(
<Provider store={store}>
<View style={{flex: 1}}>
<Router/>
</View>
</Provider>
)};
}
const styles = {
landing:{
paddingTop: 40,
paddingLeft: 20
}
};
export default App;