Skip to content

Commit 2416b25

Browse files
rgomezpjkasten2
authored andcommitted
Added IAM stubbing and added return promise for iOS
1 parent 2757ab9 commit 2416b25

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ export default class OneSignal {
465465
} else {
466466
console.log("This function is not yet implemented on iOS");
467467
}
468+
return Promise.resolve(null);
468469
}
469470

470471
static pauseInAppMessages(pause) {
@@ -477,4 +478,4 @@ export default class OneSignal {
477478
}
478479
}
479480

480-
}
481+
}

ios/RCTOneSignal/RCTOneSignalEventEmitter.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,4 +355,7 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body {
355355
//unimplemented in iOS
356356
}
357357

358+
RCT_EXPORT_METHOD(initInAppMessageClickHandlerParams) {
359+
//unimplemented in iOS
360+
}
358361
@end

0 commit comments

Comments
 (0)