-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.android.js
42 lines (35 loc) · 945 Bytes
/
index.android.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
38
39
40
41
42
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import AppLayout from './src/app/AppLayout';
import AppNavigator from './src/app/AppNavigator';
import configureStore from './src/app/AppStore';
import CodePush from "react-native-code-push";
const AppStore = configureStore();
class App extends Component {
componentDidMount() {
CodePush.sync({updateDialog: true, installMode: CodePush.InstallMode.IMMEDIATE})
.then(update => console.log('update', update))
.catch(err => console.log('update error', err));
}
render() {
return (
<Provider store={AppStore} >
<AppLayout>
<AppNavigator />
</AppLayout>
</Provider>
);
}
}
AppRegistry.registerComponent('bimbot', () => App);