From 271779d532011e94c2713001f6473d43993c964a Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Wed, 4 Mar 2026 19:00:19 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IE6HIL]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-ping=E4=B8=89=E6=96=B9=E5=BA=93=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-ping.md | 6 +++--- zh-cn/react-native-ping.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/react-native-ping.md b/en/react-native-ping.md index 021915ab6..9aa1f5d7b 100644 --- a/en/react-native-ping.md +++ b/en/react-native-ping.md @@ -10,7 +10,7 @@ This third-party library has been migrated to Gitcode and is now available for d | Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | | --------------| -------------- | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | -| @react-native-ohos/react-native-ping | ~ 1.3.0 | [Github Releases](https://github.com/react-native-oh-library/react-native-ping/releases) | 0.72.*/0.77.*/0.82.* | yes | API20+ | 1.2.8 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-ping) | +| @react-native-ohos/react-native-ping | ~ 1.0.0 | [Github Releases](https://github.com/react-native-oh-library/react-native-ping/releases) | 0.72.*/0.77.*/0.82.* | partially(0.72) | API20+ | 1.2.8 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-ping) | ## 1. Installation and Usage @@ -390,7 +390,7 @@ export default ReactNativePingDemo; | | Supported Autolink | Supported RN Version | |--------------------------------------|------------------|-----------| -| ~1.3.0 | Yes | 0.72/0.77/0.82 | +| ~1.0.0 | partially(0.72) | 0.72/0.77/0.82 | Projects using AutoLink need to be configured according to this document, AutoLink framework guide.:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md @@ -542,7 +542,7 @@ open `entry/src/main/resources/base/element/string.json` and add: > [!TIP] All versions of the current third-party libraries supporting compilation in `API20+` projects and execution on `API20+` ROMs. > [!TIP] The following features depend on specific API versions. Compiling the project with an API version lower than specified or running the ROM with an API version lower than specified may result in limited functionality. -1. Version 1.3.0 introduced [NetConn_ProbeResultInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-netconnection-netconn-proberesultinfo) to define the detection result information returned in the `ping` function. `NetConn_ProbeResultInfo` needs to be compiled in a project that supports `API20+` and run on a ROM that supports `API20+`. Running it on lower versions will result in the ping function in the `start` method being unavailable. +1. Version 1.0.0 introduced [NetConn_ProbeResultInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-netconnection-netconn-proberesultinfo) to define the detection result information returned in the `ping` function. `NetConn_ProbeResultInfo` needs to be compiled in a project that supports `API20+` and run on a ROM that supports `API20+`. Running it on lower versions will result in the ping function in the `start` method being unavailable. ## 4. APIs diff --git a/zh-cn/react-native-ping.md b/zh-cn/react-native-ping.md index 2653bd2c1..6c264a7e9 100644 --- a/zh-cn/react-native-ping.md +++ b/zh-cn/react-native-ping.md @@ -9,7 +9,7 @@ 该第三方库支持直接从 npm 下载,包名为:`@react-native-ohos/react-native-ping` 版本所属关系如下: | 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 | | ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | -| @react-native-ohos/react-native-ping | ~ 1.3.0 | [Github Releases](https://github.com/react-native-oh-library/react-native-ping/releases) | 0.72.*/0.77.*/0.82.* | 是 | API20+ | 1.2.8 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-ping) | +| @react-native-ohos/react-native-ping | ~ 1.0.0 | [Github Releases](https://github.com/react-native-oh-library/react-native-ping/releases) | 0.72.*/0.77.*/0.82.* | partially(0.72) | API20+ | 1.2.8 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-ping) | ## 1. 安装与使用 @@ -393,7 +393,7 @@ export default ReactNativePingDemo; | | 是否支持autolink | RN框架版本 | |--------------------------------------|------------------|-----------| -| ~1.3.0 | Yes | 0.72/0.77/0.82 | +| ~1.0.0 | partially(0.72) | 0.72/0.77/0.82 | 使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md @@ -548,7 +548,7 @@ ohpm install > [!TIP] 当前三方库支持在 `API20+` 工程编译,及 `API20+` ROM运行。 > [!TIP] 以下功能依赖特定版本的API,使用 `低于指定API版本的工程编译` 或 `低于指定API版本的ROM运行` 均可能导致部分功能受限。 -1. 1.3.0版本引入[NetConn_ProbeResultInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-netconnection-netconn-proberesultinfo),来定义ping功能中返回的探测结果信息,NetConn_ProbeResultInfo需要在支持`API20+`的工程编译,并在支持`API20+`的ROM上运行,低版本上运行将会导致start方法中的ping功能不可用。 +1. 1.0.0版本引入[NetConn_ProbeResultInfo](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-netconnection-netconn-proberesultinfo),来定义ping功能中返回的探测结果信息,NetConn_ProbeResultInfo需要在支持`API20+`的工程编译,并在支持`API20+`的ROM上运行,低版本上运行将会导致start方法中的ping功能不可用。 ## 6. API -- Gitee