🐛 Fix a bug where the sendEvent method was not added

This commit is contained in:
Salma ElTarzi 2017-08-10 04:14:29 +02:00
parent b47e21fb54
commit 5e4195b745

View File

@ -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<br/>