mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-25 01:31:54 +08:00
Merge pull request #368 from Microsoft/propagate-download-dialog-err
Propagate errors thrown in update dialog button press handler
This commit is contained in:
@@ -353,8 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
|
||||
let message = null;
|
||||
const dialogButtons = [{
|
||||
text: null,
|
||||
onPress: async () => {
|
||||
resolve(await doDownloadAndInstall());
|
||||
onPress:() => {
|
||||
doDownloadAndInstall()
|
||||
.then(resolve, reject);
|
||||
}
|
||||
}];
|
||||
|
||||
@@ -451,4 +452,4 @@ if (NativeCodePush) {
|
||||
log("The CodePush module doesn't appear to be properly installed. Please double-check that everything is setup correctly.");
|
||||
}
|
||||
|
||||
module.exports = CodePush;
|
||||
module.exports = CodePush;
|
||||
|
||||
Reference in New Issue
Block a user