-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
executable file
·37 lines (30 loc) · 846 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
34
35
36
37
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import firebase from 'firebase';
import '@firebase/auth';
import reducers from './src/reducers/index.js';
import Router from './Router';
console.disableYellowBox = true;
export default class App extends Component {
componentWillMount() {
firebase.initializeApp({
apiKey: "secret",
authDomain: "secret",
databaseURL: "secret",
projectId: "ithinka-chat-app-60",
storageBucket: "",
messagingSenderId: "secret",
appId: "secret"
});
}
render() {
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
return (
<Provider store={store}>
<Router />
</Provider>
);
}
}