-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
41 lines (32 loc) · 1.16 KB
/
App.js
File metadata and controls
41 lines (32 loc) · 1.16 KB
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
38
39
40
41
import React, { Component } from 'react'
import { View, AppRegistry, StatusBar, UIManager, Platform, AsyncStorage} from 'react-native'
import { Provider } from 'react-redux'
import store from './src/utils/store'
import AppNavigation from './src/components/AppNavigation'
import config from './src/utils/config'
import Parse from 'parse/react-native'
import Notifications from './src/components/Notifications'
export default class App extends Component {
componentWillMount() {
// need to use the official parse sdk for liveQuery
Parse.initialize(config.appId)
Parse.serverURL = config.host
Parse.setAsyncStorage(AsyncStorage)
// disable this if you are experiencing weird animation glitches on Android
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental(true)
}
}
render() {
return (
<Provider store={store}>
<View style={{flex: 1}}>
<StatusBar translucent={true} barStyle="light-content" animated={true}/>
<AppNavigation />
<Notifications />
</View>
</Provider>
)
}
}
AppRegistry.registerComponent('ReactNativeReduxParse', () => App);