UNPKG

instabug-reactnative

Version:

React Native plugin for integrating the Instabug SDK

19 lines (18 loc) 888 B
import type { NativeModule, Platform } from 'react-native'; import type { StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack'; import type { NonFatalErrorLevel } from '../utils/Enums'; export interface CrashData { message: string; e_message: string; e_name: string; os: (typeof Platform)['OS']; platform: 'react_native'; exception: StackFrame[]; } export interface CrashReportingNativeModule extends NativeModule { setEnabled(isEnabled: boolean): void; sendJSCrash(data: CrashData | string): Promise<void>; sendHandledJSCrash(data: CrashData | string, userAttributes?: Record<string, string> | null, fingerprint?: string | null, nonFatalExceptionLevel?: NonFatalErrorLevel | null): Promise<void>; setNDKCrashesEnabled(isEnabled: boolean): Promise<void>; } export declare const NativeCrashReporting: CrashReportingNativeModule;