mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
Update CodePush.js
This commit is contained in:
@@ -353,12 +353,9 @@ async function syncInternal(options = {}, syncStatusChangeCallback, downloadProg
|
||||
let message = null;
|
||||
const dialogButtons = [{
|
||||
text: null,
|
||||
onPress: async () => {
|
||||
try {
|
||||
resolve(await doDownloadAndInstall());
|
||||
} catch (downloadError) {
|
||||
reject(downloadError);
|
||||
}
|
||||
onPress:() => {
|
||||
doDownloadAndInstall()
|
||||
.then(resolve, reject);
|
||||
}
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user