From 5af25ecee10b2f71a83df6cfad703b3222a7d014 Mon Sep 17 00:00:00 2001 From: sky603629 Date: Tue, 25 Nov 2025 20:55:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A00.77=203=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=AD=E8=8B=B1=E6=96=87=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sky603629 --- en/react-native-get-random-values.md | 1 + en/react-native-linear-gradient.md | 9 +++++---- en/react-native-pickers.md | 8 ++++++-- zh-cn/react-native-get-random-values.md | 3 ++- zh-cn/react-native-linear-gradient.md | 27 +++++++++++++------------ zh-cn/react-native-pickers.md | 8 ++++++-- 6 files changed, 34 insertions(+), 22 deletions(-) diff --git a/en/react-native-get-random-values.md b/en/react-native-get-random-values.md index 9749c493c..20a03cc14 100644 --- a/en/react-native-get-random-values.md +++ b/en/react-native-get-random-values.md @@ -182,6 +182,7 @@ Please refer to the Releases page of the third-party library for the correspondi This document is verified based on the following versions: 1. RNOH: 0.72.20-CAPI; SDK: HarmonyOS NEXT Developer Preview2; IDE: DevEco Studio 4.1.3.700; ROM: 3.0.0.19; +2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; ## Static Methods diff --git a/en/react-native-linear-gradient.md b/en/react-native-linear-gradient.md index 74f1d1068..9cb6c9f59 100644 --- a/en/react-native-linear-gradient.md +++ b/en/react-native-linear-gradient.md @@ -8,10 +8,11 @@ This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-linear-gradient`, After introducing the new version of the third-party library, The version correspondence details are as follows: -| Version | Package Name | Repository | Release | -| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | -| <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | -| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | +| Version | Package Name | Repository | Release | Supported RN Version | +| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | -------------------------- | +| <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | 0.72 | +| 3.0.0 | @react-native-oh-tpl/react-native-linear-gradient | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/tree/br_rnoh0.72) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | 0.72 | +| 3.1.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/tree/br_rnoh0.77) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | 0.77 | ## 1. Installation and Usage diff --git a/en/react-native-pickers.md b/en/react-native-pickers.md index 6ceb3a70b..a90735643 100644 --- a/en/react-native-pickers.md +++ b/en/react-native-pickers.md @@ -15,6 +15,9 @@ > [!TIP] [GitHub address](https://github.com/iberHK/react-native-picker) ## Installation and Usage +| Library Version | Supported RN Version | +| :--- | :--- | +| 2.0.0 | 0.72/0.77 | Go to the project directory and execute the following instruction: @@ -160,9 +163,9 @@ export default class MainPage extends BaseComponent { ## Link -The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-svg. If this library is included into your HarmonyOS application, there is no need to include it again; you can skip the steps in this section and use it directly. +The HarmonyOS implementation of this library depends on the native code from @react-native-ohos/react-native-svg. If this library is included into your HarmonyOS application, there is no need to include it again; you can skip the steps in this section and use it directly. -If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-svg](/en/react-native-svg-capi.md) to add it to your project. +If it is not included, follow the guide provided in [@react-native-ohos/react-native-svg](/en/react-native-svg-capi.md) to add it to your project. ## Constraints @@ -171,6 +174,7 @@ If it is not included, follow the guide provided in [@react-native-oh-tpl/react- This document is verified based on the following versions: 1. RNOH: 0.72.26; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.300; ROM: 3.0.0.25; +2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; ## Properties diff --git a/zh-cn/react-native-get-random-values.md b/zh-cn/react-native-get-random-values.md index 3f3fbed21..96360825a 100644 --- a/zh-cn/react-native-get-random-values.md +++ b/zh-cn/react-native-get-random-values.md @@ -183,6 +183,7 @@ ohpm install 本文档内容基于以下版本验证通过: 1. RNOH: 0.72.20-CAPI; SDK: HarmonyOS NEXT Developer Preview2; IDE: DevEco Studio 4.1.3.700; ROM: 3.0.0.19; +2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; ## 静态方法 @@ -192,7 +193,7 @@ ohpm install > > | Name | Description | Type | Required | Platform | HarmonyOS Support | > | ----------------------------- | ---------------------------------------------------- | ------- | -------- | ----------- | ----------------- | -> | global.crypto.getRandomValues | lets you get cryptographically strong random values. | funtion | no | IOS/Android | yes | +> | global.crypto.getRandomValues | 允许你获取具有加密强度的随机值。 | funtion | no | IOS/Android | yes | ## 开源协议 diff --git a/zh-cn/react-native-linear-gradient.md b/zh-cn/react-native-linear-gradient.md index f3863e8fe..1714be427 100644 --- a/zh-cn/react-native-linear-gradient.md +++ b/zh-cn/react-native-linear-gradient.md @@ -8,10 +8,11 @@ 该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-linear-gradient`,具体版本所属关系如下: -| Version | Package Name | Repository | Release | -| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | -| <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | -| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | +| Version | Package Name | Repository | Release | Supported RN Version | +| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | -------------------------- | +| <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | 0.72 | +| 3.0.0 | @react-native-oh-tpl/react-native-linear-gradient | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/tree/br_rnoh0.72) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | 0.72 | +| 3.1.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/tree/br_rnoh0.77) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | 0.77 | ## 1. 安装与使用 @@ -205,15 +206,15 @@ ohpm install > [!TIP] "如果“HarmonyOS 支持”列的值为“yes”,则表示 HarmonyOS 平台支持该属性;“no”则表示不支持;“partially”表示部分支持该属性的功能。该属性在不同平台上的使用方法相同,效果与 iOS 或 Android 平台一致。 -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| ----------- | -------------------------------------------------------- | ---------------------- | -------- | -------- | ----------------- | -| colors | Color Array | (string\|number)[] | NO | All | yes | -| locations | Color for unknown array (length 0 or the same as colors) | number[] | NO | All | yes | -| useAngle | Use angle (default false) | boolean | NO | All | yes | -| angle | Angle (useAngle=true valid) | number | NO | All | yes | -| angleCenter | Middle angle coordinate | { x: number,y: number} | NO | All | no | -| start | Starting point coordinates (default value: {x: 0.5,1}) | { x: number,y: number} | NO | All | yes | -| end | End point coordinates (default value: {x: 0.5,1}) | { x: number,y: number} | NO | All | yes | +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| :--- | :--- | :--- | :--- | :--- | :--- | +| colors | 颜色数组 | (string\|number)[] | NO | All | yes | +| locations | 颜色位置数组(长度为 0 或与 colors 相同) | number[] | NO | All | yes | +| useAngle | 是否使用角度(默认为 false) | boolean | NO | All | yes | +| angle | 角度(当 useAngle=true 时有效) | number | NO | All | yes | +| angleCenter | 角度中心坐标 | { x: number,y: number} | NO | All | no | +| start | 起点坐标(默认值:{x: 0.5, 1}) | { x: number,y: number} | NO | All | yes | +| end | 终点坐标(默认值:{x: 0.5, 1}) | { x: number,y: number} | NO | All | yes | ## 5. 遗留问题 diff --git a/zh-cn/react-native-pickers.md b/zh-cn/react-native-pickers.md index ee860bd31..cd072c584 100644 --- a/zh-cn/react-native-pickers.md +++ b/zh-cn/react-native-pickers.md @@ -15,6 +15,9 @@ > [!TIP] [Github 地址](https://github.com/iberHK/react-native-picker) ## 安装与使用 +| 三方库版本 | 支持RN版本 | +| :--- | :--- | +| 2.0.0 | 0.72/0.77 | 进入到工程目录并输入以下命令: @@ -160,9 +163,9 @@ export default class MainPage extends BaseComponent { ## Link -本库依赖@react-native-oh-tpl/react-native-svg,如已在鸿蒙工程中引入过该库,则无需再次引入。 +本库依赖@react-native-ohos/react-native-svg,如已在鸿蒙工程中引入过该库,则无需再次引入。 -如未引入请参照[@react-native-oh-tpl/react-native-svg 文档的 Link 章节](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-svg-capi.md#link)进行引入 +如未引入请参照[@react-native-ohos/react-native-svg 文档的 Link 章节](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-svg-capi.md#link)进行引入 ## 约束与限制 @@ -171,6 +174,7 @@ export default class MainPage extends BaseComponent { 本文档内容基于以下版本验证通过: 1. RNOH: 0.72.26; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.300; ROM:3.0.0.25; +2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; ## 属性 -- Gitee