Skip to content

Commit 6ab19f5

Browse files
fix: Add missing InApp dismissMessage() for legacy RN architecture (#511)
1 parent 9849d04 commit 6ab19f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ios/wrappers/inapp/NativeMessagingInApp.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,12 @@ public class NativeMessagingInAppLegacy: RCTEventEmitter {
130130
override public func supportedEvents() -> [String]! {
131131
[CustomerioConstants.inAppEventListener]
132132
}
133+
134+
/**
135+
* Dismisses any currently displayed in-app message
136+
*/
137+
@objc
138+
public func dismissMessage() {
139+
MessagingInApp.shared.dismissMessage()
140+
}
133141
}

0 commit comments

Comments
 (0)