fix ios install to overwrite pending

This commit is contained in:
Geoffrey Goh
2016-02-05 16:54:15 -08:00
parent 35201d1640
commit e34f51445b
3 changed files with 26 additions and 10 deletions

View File

@@ -446,6 +446,7 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSError *error;
[CodePushPackage installPackage:updatePackage
removePendingUpdate:[self isPendingUpdate:nil]
error:&error];
if (error) {