Update example with new update check method name

This commit is contained in:
Will Anderson
2015-09-01 14:00:53 -07:00
parent 59ad870984
commit 7adc4085d1

View File

@@ -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 });
});
},