Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 541 Bytes

File metadata and controls

22 lines (16 loc) · 541 Bytes

@heytea/react-native-crash-report

Getting started

$ npm install @heytea/react-native-crash-report --save

Mostly automatic installation

$ react-native link @heytea/react-native-crash-report

Usage

import ReactNativeCrashReport from '@heytea/react-native-crash-report';

// 初始化
// auth 为请求头中 Authorization 的值
ReactNativeCrashReport.init(qiniuUrl: string, auth: string);
// 上报日志
ReactNativeCrashReport.reportLog(log: string);
// 测试闪退
ReactNativeCrashReport.testCrash();