Skip to content

Commit 85efe45

Browse files
authored
Update examples (#4)
1 parent 54f56c4 commit 85efe45

6 files changed

Lines changed: 9984 additions & 16216 deletions

File tree

Examples/CodePushDemoApp/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
View,
1010
} from 'react-native';
1111

12-
import CodePush from "react-native-code-push";
12+
import * as CodePush from "@appzung/react-native-code-push";
1313

1414
class App extends Component<{}> {
1515
constructor() {
@@ -157,6 +157,6 @@ const styles = StyleSheet.create({
157157
*/
158158
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
159159

160-
App = CodePush(codePushOptions)(App);
160+
App = CodePush.withCodePush(codePushOptions)(App);
161161

162162
export default App;

Examples/CodePushDemoApp/package-lock.json

Lines changed: 56 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/CodePushDemoApp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"lint": "eslint ."
1111
},
1212
"dependencies": {
13+
"@appzung/react-native-code-push": "^8.3.2",
1314
"react": "17.0.2",
14-
"react-native": "0.68.5",
15-
"react-native-code-push": "8.1.0"
15+
"react-native": "0.68.5"
1616
},
1717
"resolutions": {
1818
"strip-ansi": "^6.0.1",

Examples/CodePushDemoAppCpp/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
View,
1212
} from 'react-native';
1313

14-
import CodePush from "react-native-code-push";
14+
import * as CodePush from "@appzung/react-native-code-push";
1515

1616
class App extends Component<{}> {
1717
constructor() {
@@ -172,6 +172,6 @@ const styles = StyleSheet.create({
172172
*/
173173
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
174174

175-
App = CodePush(codePushOptions)(App);
175+
App = CodePush.withCodePush(codePushOptions)(App);
176176

177177
export default App;

0 commit comments

Comments
 (0)