/
App.js
32 lines (29 loc) · 896 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
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import firebase from 'firebase';
import Routes from './src/Routes';
import configureStore from './src/store/configureStore';
const store = configureStore();
export default class App extends Component {
constructor(props) {
super(props);
// Initialize Firebase
firebase.initializeApp({
apiKey: 'AIzaSyASWMSd5uCVLPEKimaK6EDnWoQRWx7DN9I',
authDomain: 'react-native-social-app-4322c.firebaseapp.com',
databaseURL: 'https://react-native-social-app-4322c.firebaseio.com',
projectId: 'react-native-social-app-4322c',
storageBucket: '',
messagingSenderId: '917447438216',
});
}
render() {
return (
<Provider store={store}>
<Routes />
</Provider>
);
}
}
// disable warning notification in simulator
console.disableYellowBox = true;