Skip to content

Commit 6c9d554

Browse files
committed
📝 CapturerJserror fix
1 parent 8010432 commit 6c9d554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from 'react-native';
99
let { Instabug } = NativeModules;
1010
import IBGEventEmitter from './utils/IBGEventEmitter';
11-
import InstabugUtils from './utils/InstabugUtils';
11+
import { captureJsErrors } from './utils/InstabugUtils';
1212
import InstabugConstants from './utils/InstabugConstants';
1313
import Report from './models/Report';
1414
import BugReporting from './modules/BugReporting';
@@ -19,7 +19,7 @@ import Replies from './modules/Replies';
1919
import CrashReporting from './modules/CrashReporting';
2020
import NetworkLogger from './modules/NetworkLogger';
2121

22-
InstabugUtils.captureJsErrors();
22+
captureJsErrors();
2323
NetworkLogger.setEnabled(true);
2424

2525
var _isOnReportHandlerSet = false;

0 commit comments

Comments
 (0)