-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (29 loc) · 917 Bytes
/
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
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import ReduxThunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import reducers from './src/reducers';
import Router from './src/Router';
class App extends Component {
componentWillMount() {
const config = {
apiKey: 'AIzaSyCBGH2ZbSzKikSS7hVWCYnK2r4Mh60AsK8',
authDomain: 'manager-dcb4b.firebaseapp.com',
databaseURL: 'https://manager-dcb4b.firebaseio.com',
projectId: 'manager-dcb4b',
storageBucket: 'manager-dcb4b.appspot.com',
messagingSenderId: '282154119232'
};
firebase.initializeApp(config);
console.ignoredYellowBox = ['Setting a timer'];
}
render() {
return (
<Provider store={createStore(reducers, {}, applyMiddleware(ReduxThunk))}>
<Router />
</Provider>
);
}
}
export default App;