File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -1303,22 +1303,12 @@ public void onReportCreated(Report report) {
1303
1303
@ ReactMethod
1304
1304
public void setPostInvocationHandler (final Callback postInvocationHandler ) {
1305
1305
try {
1306
- // BugReporting.setOnDismissCallback(new OnSdkDismissCallback() {
1307
- // @Override
1308
- // public void call() {
1309
- //// WritableMap params = Arguments.createMap();
1310
- //// params.putString("issueState", issueState.toString());
1311
- //// params.putString("bugType", bugType.toString());
1312
- // sendEvent(getReactApplicationContext(), "IBGpostInvocationHandler", null);
1313
- // }
1314
- // });
1315
-
1316
1306
BugReporting .setOnDismissCallback (new OnSdkDismissCallback () {
1317
1307
@ Override
1318
1308
public void call (DismissType dismissType , ReportType reportType ) {
1319
1309
WritableMap params = Arguments .createMap ();
1320
- params .putString ("issueState " , dismissType .toString ());
1321
- params .putString ("bugType " , reportType .toString ());
1310
+ params .putString ("dismissType " , dismissType .toString ());
1311
+ params .putString ("reportType " , reportType .toString ());
1322
1312
sendEvent (getReactApplicationContext (), "IBGpostInvocationHandler" , null );
1323
1313
}
1324
1314
});
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ module.exports = {
262
262
) ;
263
263
} else {
264
264
DeviceEventEmitter . addListener ( 'IBGpostInvocationHandler' , function ( payload ) {
265
- postInvocationHandler ( payload . issueState , payload . bugType ) ;
265
+ postInvocationHandler ( payload . dismissType , payload . reportType ) ;
266
266
} ) ;
267
267
}
268
268
You can’t perform that action at this time.
0 commit comments