From eaa5a8279914d28f59c513249a451e315522c913 Mon Sep 17 00:00:00 2001 From: hewanglong Date: Thu, 29 Jan 2026 20:49:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9react-native-nfc-mana?= =?UTF-8?q?ger=E7=9A=84=E4=B8=AD=E8=8B=B1=E6=96=87=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hewanglong --- en/react-native-nfc-manager.md | 16 +++++++++++----- zh-cn/react-native-nfc-manager.md | 17 ++++++++++++----- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/en/react-native-nfc-manager.md b/en/react-native-nfc-manager.md index dfe2fb14..74bae8fd 100644 --- a/en/react-native-nfc-manager.md +++ b/en/react-native-nfc-manager.md @@ -18,11 +18,12 @@ Please refer to the Releases page of the third-party library for the corresponding version information -| Third-party Library Version | Release Information | Supported RN Version | -| ---------- | ------------------------------------------------------------ | ---------- | -| <= 3.15.0-0.0.4@deprecated | [@react-native-oh-tpl/react-native-nfc-manager Releases(deprecated)](https://github.com/react-native-oh-library/react-native-nfc-manager/releases) | 0.72 | -| 3.15.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.72 | -| 3.16.2 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.77 | +| Third-party Library Version | community version | Release Information | Supported RN Version | +|-------|-------------------------------------------------------------------------------------------------------------------------------------------------| ---------- | ---------- | +| 3.17.2 | 3.17.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.82 | +| 3.16.2 | 3.16.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.77 | +| 3.15.1 | 3.15.0 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.72 | +| <= 3.15.0-0.0.4@deprecated | 3.15.0 | [@react-native-oh-tpl/react-native-nfc-manager Releases(deprecated)](https://github.com/react-native-oh-library/react-native-nfc-manager/releases) | 0.72 | For older versions not published on npm, please refer to the [Installation Guide](/en/tgz-usage-en.md) to install the tgz package. @@ -98,6 +99,7 @@ This library has been adapted for `Codegen`. Before using it, you need to proact | | Is supported autolink | Supported RN Ve |--------------------------------------|------------------|------------| +| ~3.17.2 | No | 0.82 | | ~3.16.2 | No | 0.77 | | ~3.15.1 | Yes | 0.72 | | <= 3.15.0-0.0.4@deprecated | No | 0.72 | @@ -334,11 +336,14 @@ Then build and run the code. To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. +> [!TIP] Versions >=4.7.4-0.2.1 need to run on DevEco Studio 5.0.2 (API14) or later. + Verified in the following versions. 1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; 2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; 3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7 ### Permission Requirements @@ -459,6 +464,7 @@ Open the `entry/src/main/module.json5` file and add the following code: | setTimeout | Set the timeout for sending data to Tag | function | NO | Android | yes | | connect | Establish a connection with the tag | function | NO | Android | yes | | close | Close tag connection | function | NO | Android | yes | +| getTimeout | Get the timeout for sending data to Tag | function | NO | Android | YES | **NfcVHandler** | Name | Description | Type | Required | Platform | HarmonyOS Support | diff --git a/zh-cn/react-native-nfc-manager.md b/zh-cn/react-native-nfc-manager.md index 19ceced6..23eb4816 100644 --- a/zh-cn/react-native-nfc-manager.md +++ b/zh-cn/react-native-nfc-manager.md @@ -18,11 +18,13 @@ 请到三方库的 Releases 发布地址查看配套的版本信息: -| 三方库版本 | 发布信息 | 支持RN版本 | -| ---------- | ------------------------------------------------------------ | ---------- | -| <= 3.15.0-0.0.4@deprecated | [@react-native-oh-tpl/react-native-nfc-manager Releases(deprecated)](https://github.com/react-native-oh-library/react-native-nfc-manager/releases) | 0.72 | -| 3.15.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.72 | -| 3.16.2 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.77 | +| 三方库版本 | 社区版本 | 发布信息 | 支持RN版本 | +|-------|-------------------------------------------------------------------------------------------------------------------------------------------------| ---------- | ---------- | +| 3.17.2 | 3.17.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.82 | +| 3.16.2 | 3.16.1 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.77 | +| 3.15.1 | 3.15.0 | [@react-native-ohos/react-native-nfc-manager Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-nfc-manager/releases) | 0.72 | +| <= 3.15.0-0.0.4@deprecated | 3.15.0 | [@react-native-oh-tpl/react-native-nfc-manager Releases(deprecated)](https://github.com/react-native-oh-library/react-native-nfc-manager/releases) | 0.72 | + 对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -98,6 +100,7 @@ export default App; | | 是否支持autolink | RN框架版本 | |--------------------------------------|-----------------|------------| +| ~3.17.2 | No | 0.82 | | ~3.16.2 | No | 0.77 | | ~3.15.1 | Yes | 0.72 | | <= 3.15.0-0.0.4@deprecated | No | 0.72 | @@ -338,12 +341,15 @@ ohpm install ### 兼容性 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 +> [!TIP] version>=3.15.0-0.0.4的版本需要在DevEco Studio 5.0.2(API14) 及以上版本编译 + 在以下版本验证通过: 1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; 2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; 3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4. RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7 ### 权限要求 打开 `entry/src/main/module.json5`,添加以下权限配置 @@ -466,6 +472,7 @@ ohpm install | setTimeout | Set the timeout for sending data to Tag | function | NO | Android | NO | | connect | Establish a connection with the tag | function | NO | Android | NO | | close | Close tag connection | function | NO | Android | NO | +| getTimeout | Get the timeout for sending data to Tag | function | NO | Android | YES | **NfcVHandler** | Name | Description | Type | Required | Platform | HarmonyOS Support | -- Gitee