文档模板:v0.4.2

react-native-exception-handler

本项目基于 原库react-native-exception-handler 开发。

该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:@react-native-ohos/react-native-exception-handler 版本所属关系如下:

三方库名称 三方库版本(npm地址) 发布信息 支持RN版本 Autolink 编译API版本 社区基线版本 源码地址
@react-native-ohos/react-native-exception-handler ~2.12.0 Gitcode Releases 0.82.*/0.84.* API12+ 2.10.10 master
@react-native-ohos/react-native-exception-handler ~2.11.0 Gitcode Releases 0.77.* API12+ 2.10.10 br_rnoh0.77
@react-native-ohos/react-native-exception-handler ~2.10.11 Gitcode Releases 0.72.* API12+ 2.10.10 br_rnoh0.72
@react-native-oh-tpl/react-native-exception-handler <=2.10.10-0.1.7@deprecated Github Releases(deprecated) 0.72.* API12+ 2.10.10 sig

简介

react-native-exception-handler 是一个用于注册全局错误处理器,捕获应用中未处理的致命或非致命异常。

下载安装

进入到工程目录并输入以下命令:

npm

npm install @react-native-ohos/react-native-exception-handler

yarn

yarn add @react-native-ohos/react-native-exception-handler