-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
31 lines (30 loc) · 870 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
import React, {Component} from 'react';
import {AppRegistry, StyleSheet, Text, View} from 'react-native';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './src/core/reducers';
import App from './src/App';
import {TabNavigator, StackNavigator} from 'react-navigation';
import {Spinner} from 'native-base';
import firebase from 'firebase';
export default class RNChat extends Component {
componentDidMount() {
firebase.initializeApp({
apiKey: '',
authDomain: '',
databaseURL: '',
projectId: '',
storageBucket: '',
messagingSenderId: '',
});
}
render() {
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
return (
<Provider store={store}>
<App />
</Provider>
);
}
}