Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8064cc7

Browse files
annakocheshkovaMax
authored andcommitted
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.
1 parent 553e2ea commit 8064cc7

File tree

1 file changed

+3
-1
lines changed
  • Examples/CodePushDemoApp

1 file changed

+3
-1
lines changed

Examples/CodePushDemoApp/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111

1212
import CodePush from "react-native-code-push";
1313

14-
export default class App extends Component<{}> {
14+
class App extends Component<{}> {
1515
constructor() {
1616
super();
1717
this.state = { restartAllowed: true };
@@ -158,3 +158,5 @@ const styles = StyleSheet.create({
158158
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
159159

160160
App = CodePush(codePushOptions)(App);
161+
162+
export default App;

0 commit comments

Comments
 (0)