Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 00d7ade

Browse files
author
Will Anderson
committed
Rename getLocalPackage to getCurrentPackage
1 parent 0798cd9 commit 00d7ade

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CodePush.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function checkForUpdate(callback) {
5757
})
5858
.then((sdkResult) => {
5959
sdk = sdkResult;
60-
return NativeCodePush.getLocalPackage();
60+
return getCurrentPackage();
6161
})
6262
.then((localPackage) => {
6363
var queryPackage = {appVersion: config.appVersion};

CodePush.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ + (void) loadBundle:(NSString*)rootComponent
189189
}
190190

191191

192-
RCT_EXPORT_METHOD(getLocalPackage:(RCTPromiseResolveBlock)resolve
192+
RCT_EXPORT_METHOD(getCurrentPackage:(RCTPromiseResolveBlock)resolve
193193
rejecter:(RCTPromiseRejectBlock)reject)
194194
{
195195

0 commit comments

Comments
 (0)