fix getCurrentPackage

This commit is contained in:
Geoffrey Goh
2016-02-11 21:18:00 -08:00
parent 009ae205f8
commit 7bb4e1099e
5 changed files with 34 additions and 14 deletions

View File

@@ -462,6 +462,7 @@ RCT_EXPORT_METHOD(getCurrentPackage:(RCTPromiseResolveBlock)resolve
if (error) {
reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
return;
}
// Add the "isPending" virtual property to the package at this point, so that