-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (31 loc) · 968 Bytes
/
App.js
File metadata and controls
35 lines (31 loc) · 968 Bytes
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
import React, { PureComponent } from 'react'
import { View, StatusBar } from 'react-native'
import { Provider } from 'react-redux'
import Routes from './src/routers/Routes';
import { YellowBox } from 'react-native';
import Firebase from 'firebase'
let config = {
apiKey: "AIzaSyDaeEvHpJXhLRfMos0WLVD_OpvtSWA0KeE",
authDomain: "myapplication-e3f24.firebaseapp.com",
databaseURL: "https://myapplication-e3f24.firebaseio.com",
projectId: "myapplication-e3f24",
storageBucket: "",
messagingSenderId: "892170186986"
};
Firebase.initializeApp(config);
export default class App extends PureComponent {
constructor(props) {
super(props)
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
}
render() {
return (
<Provider>
<View style={{ flex: 1 }}>
<StatusBar barStyle="dark-content" backgroundColor="#ccc" />
<Routes />
</View>
</Provider>
)
}
}