Fix example project (#1112)

Automatic (on_app_resume, on_app_start) sync was not working in example project because App class was exported, not the wrapped App class.
This commit is contained in:
annakocheshkova
2017-12-20 13:37:25 +03:00
committed by Max
parent 553e2eaef0
commit 8064cc7dd6

View File

@@ -11,7 +11,7 @@ import {
import CodePush from "react-native-code-push";
export default class App extends Component<{}> {
class App extends Component<{}> {
constructor() {
super();
this.state = { restartAllowed: true };
@@ -158,3 +158,5 @@ const styles = StyleSheet.create({
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
App = CodePush(codePushOptions)(App);
export default App;