Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/android/src/main/java/com/webengage/WebengageBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@ public void logout() {
WebEngage.get().user().logout();
}

@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

@ReactMethod
public void removeListeners(Integer count) {
// Keep: Required for RN built in Event Emitter Calls.
}

private Map<String, Object> recursivelyDeconstructReadableMap(ReadableMap readableMap) {
ReadableMapKeySetIterator iterator = readableMap.keySetIterator();
Map<String, Object> deconstructedMap = new HashMap<>();
Expand Down
8 changes: 8 additions & 0 deletions lib/ios/WEGWebEngageBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ - (NSArray *)setDatesInArray:(NSMutableArray *)mutableArr {
[[WebEngage sharedInstance].user logout];
}

RCT_EXPORT_METHOD(addListener : (NSString *)eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) {
// Keep: Required for RN built in Event Emitter Calls.
}

- (NSArray<NSString *> *)supportedEvents {
return @[@"notificationPrepared", @"notificationShown", @"notificationClicked", @"notificationDismissed", @"pushNotificationClicked",@"universalLinkClicked"];
}
Expand Down