Skip to content

Commit 5e4195b

Browse files
committed
🐛 Fix a bug where the sendEvent method was not added
1 parent b47e21f commit 5e4195b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,13 @@ public void setIntroMessageEnabled(boolean enabled) {
10121012
e.printStackTrace();
10131013
}
10141014
}
1015-
1015+
private void sendEvent(ReactContext reactContext,
1016+
String eventName,
1017+
@Nullable WritableMap params) {
1018+
reactContext
1019+
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
1020+
.emit(eventName, params);
1021+
}
10161022

10171023
/**
10181024
* Sets the runnable that gets executed just before showing any valid survey<br/>

0 commit comments

Comments
 (0)