1- import { NativeModules , Platform } from 'react-native' ;
2- import type { ISDKOptions } from './types/sdk-options' ;
3- import type { UserFeedbackOptions , UserFeedbackResult } from './user-feedback' ;
4- import { DefaultUserFeedbackOptions } from './user-feedback' ;
5- import type { DeviceKeyValue } from './types/device' ;
6- import type { ILogEntry } from './types/log' ;
7- import { StringFormatter } from './string-formatter' ;
8- import { LogLevel } from "./types/log" ;
9- import { OverrideConsoleMethods } from "./override-console-methods" ;
10- import { PrintToConsole } from "./print-to-console" ;
11- import { SDKOptions } from "./sdk-options" ;
1+ import { NativeModules , Platform } from 'react-native' ;
2+ import type { ISDKOptions } from './types/sdk-options' ;
3+ import type { UserFeedbackOptions , UserFeedbackResult } from './user-feedback' ;
4+ import { DefaultUserFeedbackOptions } from './user-feedback' ;
5+ import type { DeviceKeyValue } from './types/device' ;
6+ import type { ILogEntry } from './types/log' ;
7+ import { StringFormatter } from './string-formatter' ;
8+ import { LogLevel } from './types/log' ;
9+ import { PrintToConsole } from './print-to-console' ;
10+ import { SDKOptions } from './sdk-options' ;
1211
1312const LINKING_ERROR =
1413 `The package '@bugfender/rn-bugfender' doesn't seem to be linked. Make sure: \n\n` +
15- Platform . select ( { ios : "- You have run 'pod install'\n" , default : '' } ) +
14+ Platform . select ( { ios : "- You have run 'pod install'\n" , default : '' } ) +
1615 '- You rebuilt the app after installing the package\n' +
1716 '- You are not using Expo managed workflow\n' ;
1817
@@ -29,7 +28,8 @@ const RnBugfender = NativeModules.RnBugfender
2928
3029class BugfenderClass {
3130 private stringFormatter = new StringFormatter ( ) ;
32- private overrideConsoleMethods = new OverrideConsoleMethods ( window ) ;
31+ private overrideConsoleMethods =
32+ new ( require ( './override-console-methods' ) . OverrideConsoleMethods ) ( window ) ;
3333 private printToConsole = new PrintToConsole ( global . console ) ;
3434 private sdkOptions : SDKOptions = new SDKOptions ( ) ;
3535 private initialized = false ;
0 commit comments