1.0.1 • Published 4 years ago
@heytea/react-native-crash-report v1.0.1
@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();