@react-native-firebase/crashlytics
Version:
React Native Firebase - Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. React Native Firebase provides automatic crash reporting for both native and Jav
28 lines • 1.27 kB
TypeScript
import StackTrace from 'stacktrace-js';
export declare const FATAL_FLAG = "com.firebase.crashlytics.reactnative.fatal";
interface NativeErrorFrame {
src: string;
line: number;
col: number;
fn: string;
file: string;
}
interface NativeErrorObj {
message: string;
isUnhandledRejection: boolean;
frames: NativeErrorFrame[];
}
interface NativeModule {
isCrashlyticsCollectionEnabled: boolean;
isErrorGenerationOnJSCrashEnabled: boolean;
isCrashlyticsJavascriptExceptionHandlerChainingEnabled: boolean;
logPromise(message: string): Promise<void>;
setAttribute(name: string, value: string): Promise<void>;
recordErrorPromise(errorObj: NativeErrorObj): Promise<void>;
crashWithStackPromise(errorObj: NativeErrorObj): Promise<void>;
}
export declare function createNativeErrorObj(error: Error, stackFrames: StackTrace.StackFrame[], isUnhandledRejection: boolean, jsErrorName?: string): NativeErrorObj;
export declare const setGlobalErrorHandler: (nativeModule: NativeModule) => (error: unknown, fatal?: boolean) => Promise<void>;
export declare const setOnUnhandledPromiseRejectionHandler: (nativeModule: NativeModule) => (_id: number, error: Error) => Promise<void>;
export {};
//# sourceMappingURL=handlers.d.ts.map