Skip to content

将ReactNative JS层和原生层的错误信息上报到七牛云

Notifications You must be signed in to change notification settings

heytea/react-native-crash-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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();

About

将ReactNative JS层和原生层的错误信息上报到七牛云

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published