Skip to content

Commit 23d43a2

Browse files
author
詹强
committed
更新example
1 parent a0d702e commit 23d43a2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

example/App.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ class Button extends React.Component {
4545
}
4646
}
4747

48-
49-
JPush.init();
50-
5148
export default class App extends React.Component {
5249

5350
constructor(props) {
5451
super(props);
5552
}
5653

5754
componentDidMount() {
55+
JPush.init();
5856
//连接状态
5957
this.connectListener = result => {
6058
console.log("connectListener:" + JSON.stringify(result))

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"jcore-react-native": "^1.3.7",
11-
"jpush-react-native": "^2.5.7",
11+
"jpush-react-native": "^2.5.8",
1212
"react": "16.8.6",
1313
"react-native": "0.60.5"
1414
},

0 commit comments

Comments
 (0)