mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
Use done() for download method to bubble any errors
This commit is contained in:
@@ -30,7 +30,7 @@ var CodePushDemoApp = React.createClass({
|
||||
return { update: false };
|
||||
},
|
||||
handlePress: function() {
|
||||
this.state.update.download().then((localPackage) => {
|
||||
this.state.update.download().done((localPackage) => {
|
||||
localPackage.apply().done();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user