This commit is contained in:
Geoffrey Goh
2016-02-05 22:59:54 -08:00
parent 02e556d73d
commit 340bb7e74a
3 changed files with 9 additions and 5 deletions

View File

@@ -506,6 +506,8 @@ RCT_EXPORT_METHOD(isFirstRun:(NSString *)packageHash
RCT_EXPORT_METHOD(notifyApplicationReady:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
// We only mark a pending update as succeeded only if it update has been booted up,
// during which `_isFirstRunAfterUpdate` is true.
if (_isFirstRunAfterUpdate) {
[CodePush removePendingUpdate];
}