From 5e4195b745a958a61d0195064708c618bb738ef6 Mon Sep 17 00:00:00 2001 From: Salma ElTarzi Date: Thu, 10 Aug 2017 04:14:29 +0200 Subject: [PATCH] :bug: Fix a bug where the sendEvent method was not added --- .../reactlibrary/RNInstabugReactnativeModule.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 27c105c..cc64880 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -1012,7 +1012,13 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { e.printStackTrace(); } } - + private void sendEvent(ReactContext reactContext, + String eventName, + @Nullable WritableMap params) { + reactContext + .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class) + .emit(eventName, params); + } /** * Sets the runnable that gets executed just before showing any valid survey