Skip to content

Commit

Permalink
Fix ios objc++ interface
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Dec 7, 2023
1 parent 4edc397 commit a354813
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/AirshipReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public extension AirshipReactNative {
}

@objc
func notifyRemoteLogin() throws {
func contactNotifyRemoteLogin() throws {
try AirshipProxy.shared.contact.notifyRemoteLogin()
}

Expand Down
9 changes: 9 additions & 0 deletions ios/RTNAirship.mm
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,15 @@ + (BOOL)requiresMainQueueSetup {
[self handleResult:nil error:error resolve:resolve reject:reject];
}

RCT_REMAP_METHOD(contactNotifyRemoteLogin,
contactNotifyRemoteLogin:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
NSError *error;
[AirshipReactNative.shared contactNotifyRemoteLoginAndReturnError:&error];

[self handleResult:nil error:error resolve:resolve reject:reject];
}

RCT_REMAP_METHOD(inAppGetDisplayInterval,
inAppGetDisplayInterval:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject) {
Expand Down

0 comments on commit a354813

Please sign in to comment.