From 463ffc8cae539c673a4fe88b1d4a34bb04c57826 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 30 Dec 2024 16:07:39 +0100 Subject: [PATCH] feat(android): sendMessage with support of graphql --- .../java/com/openreplay/reactnative/ReactNativeModule.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt b/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt index 8919b93a0..edf9e71b2 100644 --- a/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt +++ b/tracker/tracker-reactnative/android/src/main/java/com/openreplay/reactnative/ReactNativeModule.kt @@ -116,4 +116,9 @@ class ReactNativeModule(reactContext: ReactApplicationContext) : duration = durationULong ) } + + @ReactMethod + func sendMessage(type: String, message: String) { + OpenReplay.sendMessage(type: type, message: message) + } }