mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
Update example with new update check method name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/*y
|
||||
* Sample React Native App
|
||||
* https://github.com/facebook/react-native
|
||||
*/
|
||||
@@ -22,7 +22,7 @@ var CodePushDemoApp = React.createClass({
|
||||
this.fetchData();
|
||||
},
|
||||
fetchData: function() {
|
||||
CodePush.queryUpdate((err, update) => {
|
||||
CodePush.checkForUpdate((err, update) => {
|
||||
this.setState({ update: update });
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user