From a3e9a23d3a93dd5a05b50ee5b93890b83f62743b Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 14:44:13 +0800
Subject: [PATCH 01/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-qr?=
=?UTF-8?q?code-svg=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-qrcode-svg.md | 46 ++++++++++++++++-------------------
1 file changed, 21 insertions(+), 25 deletions(-)
diff --git a/en/react-native-qrcode-svg.md b/en/react-native-qrcode-svg.md
index 8618af604..eb5dea5c7 100644
--- a/en/react-native-qrcode-svg.md
+++ b/en/react-native-qrcode-svg.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-qrcode-svg
@@ -13,13 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/awesomejerry/react-native-qrcode-svg)
+> [!TIP] [GitHub address](https://github.com/awesomejerry/react-native-qrcode-svg)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
-
-> [!TIP] # 处替换为 tgz 包的路径
+Go to the project directory and execute the following instruction:
@@ -37,10 +34,11 @@ yarn add react-native-qrcode-svg@6.2.0
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
+
+> [!WARNING] The name of the imported repository remains unchanged.
-> [!WARNING] 使用时 import 的库名不变。
-> [!TIP] 当报错信息为`Property 'TextEncoder' doesn't exist`[解决方案](https://github.com/awesomejerry/react-native-qrcode-svg/issues/199)
+> [!TIP] If the error message `Property 'TextEncoder' doesn't exist` is displayed. [solution](https://github.com/awesomejerry/react-native-qrcode-svg/issues/199)
```js
@@ -62,23 +60,23 @@ export const SvgDemo = () => {
## Link
-本库 HarmonyOS 侧实现依赖@react-native-oh-tpl/react-native-svg 的原生端代码,如已在 HarmonyOS 工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。
+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.
-如未引入请参照[@react-native-oh-tpl/react-native-svg-capi 文档的 Link 章节](/zh-cn/react-native-svg-capi.md)进行引入
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-svg-capi](/en/react-native-svg-capi.md) to add it to your project.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-在以下版本验证通过
+This document is verified based on the following versions:
-1.RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.3.400; ROM:3.0.0.25;
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.400; ROM: 3.0.0.25;
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
@@ -99,12 +97,10 @@ export const SvgDemo = () => {
| `ecl` | Error correction level | string | No | iOS,Android | yes |
| `onError(error)` | Callback fired when exception happened during the code generating process | callback | No | iOS,Android | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/awesomejerry/react-native-qrcode-svg/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/awesomejerry/react-native-qrcode-svg/blob/master/LICENSE).
--
Gitee
From 7fe810e6750cd986de9f8efb10027e5cc902c106 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 15:16:20 +0800
Subject: [PATCH 02/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-se?=
=?UTF-8?q?ction-list-get-item-layout=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...act-native-section-list-get-item-layout.md | 38 ++++++++++---------
1 file changed, 20 insertions(+), 18 deletions(-)
diff --git a/en/react-native-section-list-get-item-layout.md b/en/react-native-section-list-get-item-layout.md
index 4514337ef..5ae4d33bd 100644
--- a/en/react-native-section-list-get-item-layout.md
+++ b/en/react-native-section-list-get-item-layout.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-section-list-get-item-layout
@@ -13,11 +13,11 @@
-> [!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
+> [!TIP] [GitHub address](https://github.com/jsoendermann/rn-section-list-get-item-layout)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -35,7 +35,9 @@ yarn add react-native-section-list-get-item-layout@2.2.3
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
+
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import sectionListGetItemLayout from "react-native-section-list-get-item-layout";
@@ -65,31 +67,31 @@ class MyComponent extends React.Component {
export default MyComponent
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+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.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+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.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## API
+## APIs
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-详情见 [rn-section-list-get-item-layout 源库地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
+For details, see [rn-section-list-get-item-layout](https://github.com/jsoendermann/rn-section-list-get-item-layout)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
| sectionListGetItemLayout({getItemHeight, getSeparatorHeight, getSectionHeaderHeight,getSectionFooterHeight,listHeaderHeight}) | This package provides a function that helps you construct the getItemLayout function for your SectionLists. For an explanation of why this exists, see this post. It's meant to be used like this | function | Yes | All | Yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE).
--
Gitee
From 32d6e05a5b17f59da8b9bd86b49eb5f1246fdb53 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 15:24:09 +0800
Subject: [PATCH 03/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-ac?=
=?UTF-8?q?tion-button=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-action-button.md | 39 ++++++++++++++++----------------
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/en/react-native-action-button.md b/en/react-native-action-button.md
index f91bb0a14..6dea64d13 100644
--- a/en/react-native-action-button.md
+++ b/en/react-native-action-button.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-action-button
@@ -12,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/mastermoo/react-native-action-button)
+> [!TIP] [GitHub address](https://github.com/mastermoo/react-native-action-button)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -34,7 +34,7 @@ yarn add react-native-action-button@2.8.5
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
```js
import React, { Component } from "react";
@@ -81,22 +81,23 @@ const styles = StyleSheet.create({
},
});
```
-## 约束与限制
-## 兼容性
+## Constraints
-在以下版本验证通过
+### Compatibility
-1. RNOH:0.72.11; SDK:OpenHarmony(api11) 4.1.0.53; IDE:DevEco Studio 4.1.3.412; ROM:2.0.0.52;
-2. RNOH:0.72.13; SDK:HarmonyOS NEXT Developer Preview1; IDE:DevEco Studio 4.1.3.500; ROM:2.0.0.58;
-3. RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.3.400; ROM:3.0.0.25;
-4. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+This document is verified based on the following versions:
-## 属性
+1. RNOH: 0.72.11; SDK: OpenHarmony(api11) 4.1.0.53; IDE: DevEco Studio 4.1.3.412; ROM: 2.0.0.52;
+2. RNOH: 0.72.13; SDK: HarmonyOS NEXT Developer Preview1; IDE: DevEco Studio 4.1.3.500; ROM: 2.0.0.58;
+3. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.400; ROM: 3.0.0.25;
+4. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+## Properties
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |----------| -------- |
@@ -142,10 +143,10 @@ const styles = StyleSheet.create({
| fixNativeFeedbackRadius | Android: Activate this to fix TouchableNativeFeedback Ripple UI problems | boolean | No | Android | No |
| nativeFeedbackRippleColor | Android: Pass a color to the Ripple Effect of a TouchableNativeFeedback | string | No | Android | No |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [MIT License](https://github.com/mastermoo/react-native-action-button/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [MIT License](https://github.com/mastermoo/react-native-action-button/blob/master/LICENSE).
--
Gitee
From 6a05e5c76d098c08f23076a9deec3d10286aebcf Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:10:00 +0800
Subject: [PATCH 04/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-do?=
=?UTF-8?q?tenv=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-dotenv.md | 46 +++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 24 deletions(-)
diff --git a/en/react-native-dotenv.md b/en/react-native-dotenv.md
index 9352f90be..62ae4e8e8 100644
--- a/en/react-native-dotenv.md
+++ b/en/react-native-dotenv.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-dotenv
@@ -12,13 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/goatandsheep/react-native-dotenv)
+> [!TIP] [GitHub address](https://github.com/goatandsheep/react-native-dotenv)
-## 安装与使用
+## Installation and Usage
-
-
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -36,9 +34,9 @@ yarn add -D react-native-dotenv@3.4.9
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import {API_URL, API_TOKEN} from '@env';
@@ -68,9 +66,9 @@ export function TestDotenv() {
}
```
-基础配置:
+Basic Configuration:
-**.babelrc 或 babel.config.js**
+**`.babelrc` or `babel.config.js`**
```json
{
@@ -78,7 +76,7 @@ export function TestDotenv() {
}
```
-**.babelrc 或 babel.config.js**
+**`.babelrc` or `babel.config.js`**
> [!TIP] 如果默认值不适合您项目,这里会列出 Babel 配置的可用选项及其各自的默认值,但如果您使用默认设置,则无需添加它们。
@@ -232,7 +230,7 @@ declare module "@env" {
把所有你的 `.env` 的变量加入这个 module 内。
-最后,在 `tsconfig.json` 文件中添加 `typeRoots` 字段
+Finally, add the `typeRoots` field to the `tsconfig.json` file
```json
{
@@ -246,7 +244,7 @@ declare module "@env" {
}
```
-### 缓存
+### Cache
> [!WARNING] 请务必查看这一小节
@@ -261,7 +259,7 @@ declare module "@env" {
}
```
-在 babel config 中添加 `api.cache(false)`,例如
+Add `api.cache(false)` to the `babel.config.js` file, for example:
```js
// .babel.config.js
@@ -274,7 +272,7 @@ module.exports = function (api) {
};
```
-在 `metro.config.js` 中添加 `resetCache: true`,例如
+Add `resetCache: true` to the `metro.config.js` file, for example:
```js
// metro.config.js
@@ -286,19 +284,19 @@ module.exports = {
更多清除缓存的方法请参考 [react-naitve-dotenv 官方指引](https://github.com/goatandsheep/react-native-dotenv)
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
-1. RNOH:0.72.27; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.1.430; ROM:3.0.0.26;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.27; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.1.430; ROM: 3.0.0.26;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/goatandsheep/react-native-dotenv/blob/main/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/goatandsheep/react-native-dotenv/blob/main/LICENSE).
--
Gitee
From 34cf8a7db3f57d43915e270f5ccbc1bcdde3afa8 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:23:43 +0800
Subject: [PATCH 05/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-pd?=
=?UTF-8?q?f=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-pdf.md | 98 +++++++++++++++++++++---------------------
1 file changed, 48 insertions(+), 50 deletions(-)
diff --git a/en/react-native-pdf.md b/en/react-native-pdf.md
index e3b882cdf..2e005277d 100644
--- a/en/react-native-pdf.md
+++ b/en/react-native-pdf.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-pdf
@@ -14,13 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-pdf)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-pdf)
+
+## Installation and Usage
-## 安装与使用
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-pdf Releases](https://github.com/react-native-oh-library/react-native-pdf/releases).
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-pdf Releases](https://github.com/react-native-oh-library/react-native-pdf/releases),并下载适用版本的 tgz 包。
+Go to the project directory and execute the following instruction:
-进入到工程目录并输入以下命令:
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -38,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-pdf@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React from "react";
@@ -89,11 +89,11 @@ const styles = StyleSheet.create({
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -104,18 +104,15 @@ const styles = StyleSheet.create({
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入(推荐)
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -124,22 +121,22 @@ const styles = StyleSheet.create({
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 PdfViewPackage
+### 3. Configuring CMakeLists and Introducing PdfViewPackage
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -177,7 +174,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -194,9 +191,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 RTNPdfView 组件
+### 4. Introducing RTNPdfView Component to ArkTS
-找到 **function buildCustomRNComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code:
```diff
...
@@ -217,9 +214,9 @@ export function buildCustomRNComponent(ctx: ComponentBuilderContext) {
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
+> [!TIP] If the repository uses a mixed solution, the component name needs to be added.
-在`entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets` 找到常量 `arkTsComponentNames` 在其数组里添加组件名
+Find the constant `arkTsComponentNames` in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets` and add the component name to the array.
```diff
const arkTsComponentNames: Array = [
@@ -230,32 +227,32 @@ const arkTsComponentNames: Array = [
];
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-pdf Releases](https://github.com/react-native-oh-library/react-native-pdf/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-pdf Releases](https://github.com/react-native-oh-library/react-native-pdf/releases)
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -------- | ------------- |-------------------|
@@ -312,22 +309,23 @@ ohpm install
| {uri:"content://com.example.blobs/xxxxxxxx-...?offset=0&size=xxx"} | load pdf from content URI | object | NO | iOS | no |
| {uri:"blob:xxxxxxxx-...?offset=0&size=xxx"} | load pdf from blob URL | object | NO | Android | no |
-## 静态方法
+## Static Methods
+
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | -------- | ------------- | ----------------- |
| setPage | Set the current page of the PDF component. pageNumber is a positive integer. If pageNumber > numberOfPages, current page is not changed. | function(pageNumber) | NO | iOS / Android | no |
-## 遗留问题
+## Known Issues
- [ ] onLoadComplete 回调函数参数返回目前仅支持 numberOfPages, path参数:[issue#47](https://github.com/react-native-oh-library/react-native-pdf/issues/47)
- [ ] 原库部分接口在 HarmonyOS 中没有对应属性及接口处理相关逻辑: [issue#48](https://github.com/react-native-oh-library/react-native-pdf/issues/48)
-## 其他
-
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/wonday/react-native-pdf/blob/master/LICENSE) ,请自由地享受和参与开源。
+## Others
-
+## License
+This project is licensed under [The MIT License (MIT)](https://github.com/wonday/react-native-pdf/blob/master/LICENSE).
--
Gitee
From e953190e52fa2e10bfd6e042e622635905ec2912 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:36:08 +0800
Subject: [PATCH 06/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-re?=
=?UTF-8?q?animated-carousel=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-reanimated-carousel.md | 36 ++++++++++++--------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/en/react-native-reanimated-carousel.md b/en/react-native-reanimated-carousel.md
index cdde76ca4..8463b93df 100644
--- a/en/react-native-reanimated-carousel.md
+++ b/en/react-native-reanimated-carousel.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-reanimated-carousel
@@ -12,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/dohooo/react-native-reanimated-carousel)
+> [!TIP] [GitHub address](https://github.com/dohooo/react-native-reanimated-carousel)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -34,9 +34,7 @@ yarn add react-native-reanimated-carousel@3.5.1
-下面的代码展示了这个库的基本使用场景:
-
-> [!TIP] 本示例依赖 react-native-gesture-handler、react-native-reanimated 库,参照[@react-native-oh-tpl/react-native-gesture-handler 文档](/zh-cn/react-native-gesture-handler.md)、[@react-native-oh-tpl/react-native-reanimated 文档](/zh-cn/react-native-reanimated.md)进行引入。
+The following code shows the basic use scenario of the repository:
```ts
import React, { useState, useRef } from "react";
@@ -176,23 +174,23 @@ const styles = StyleSheet.create({
## Link
-本库鸿蒙侧实现依赖@react-native-oh-tpl/react-native-gesture-handler、@react-native-oh-tpl/react-native-reanimated 的原生端代码,如已在鸿蒙工程中引入过这两个库,则无需再次引入,可跳过本章节步骤,直接使用。
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-gesture-handler and @react-native-oh-tpl/react-native-reanimated. 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.
-如未引入请参照[@react-native-oh-tpl/react-native-gesture-handler 文档](/zh-cn/react-native-gesture-handler.md)、[@react-native-oh-tpl/react-native-reanimated 文档](/zh-cn/react-native-reanimated.md)进行引入
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-gesture-handler](/en/react-native-gesture-handler.md) and [@react-native-oh-tpl/react-native-reanimated](/en/react-native-reanimated.md) to add it to your project.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
1. RNOH: 0.72.29; SDK: HarmonyOS-Next-DB6 5.0.0.61; IDE: DevEco Studio 5.0.3.706; ROM: NEXT.0.0.61;
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### Basic Props
@@ -259,10 +257,10 @@ const styles = StyleSheet.create({
| scrollTo | Use count to scroll to a position where relative to the current position, scrollTo({count:-2}) is equivalent to prev(2), scrollTo({count:2}) is equivalent to next(2). And also can jump to specific position, e.g. scrollTo({index:2,animated:false}) | no | | ({ index: number, count: number, animated: boolean, onFinished?: () => void }) => void | All | yes |
| getCurrentIndex | Get current item index | no | | ()=>number | All | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/dohooo/react-native-reanimated-carousel/blob/main/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/dohooo/react-native-reanimated-carousel/blob/main/LICENSE).
--
Gitee
From 1f0bab1cbafcd37a6579f75afea3ec5b80e9db9c Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:43:35 +0800
Subject: [PATCH 07/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-ch?=
=?UTF-8?q?eck-box=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-check-box.md | 72 ++++++++++++++++++------------------
1 file changed, 37 insertions(+), 35 deletions(-)
diff --git a/en/react-native-check-box.md b/en/react-native-check-box.md
index 617db5fd1..e6601aebb 100644
--- a/en/react-native-check-box.md
+++ b/en/react-native-check-box.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-check-box
@@ -12,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/crazycodeboy/react-native-check-box)
+> [!TIP] [GitHub address](https://github.com/crazycodeboy/react-native-check-box)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -32,7 +32,7 @@ yarn add react-native-check-box@2.1.7
```
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
```js
import React, {Component} from 'react';
@@ -73,40 +73,42 @@ const styles = StyleSheet.create({
});
```
-## 兼容性
+## Constraints
-在以下版本验证通过
+### Compatibility
-1. RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.25; IDE:DevEco Studio 5.0.3.400; ROM:3.0.0.25;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+This document is verified based on the following versions:
-## 属性
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.25; IDE: DevEco Studio 5.0.3.400; ROM: 3.0.0.25;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+## Properties
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------- | -------- | ----------- | -------- |
-| style | Custom style checkbox | ViewPropTypes.style | No | Android、IOS | Yes |
-| leftText | Custom left Text | PropTypes.string | No | Android、IOS | Yes |
-| leftTextStyle | Custom left Text style | Text.propTypes.style | No | Android、IOS | Yes |
-| rightText | Custom right Text | PropTypes.string | No | Android、IOS | Yes |
-| rightTextView | Custom right TextView | PropTypes.element | No | Android、IOS | Yes |
-| rightTextStyle | Custom right Text style | Text.propTypes.style | No | Android、IOS | Yes |
-| checkedImage | Custom checked Image | PropTypes.element | No | Android、IOS | Yes |
-| unCheckedImage | Custom unchecked Image | PropTypes.element | No | Android、IOS | Yes |
-| isChecked | checkbox checked state | PropTypes.bool | Yes | Android、IOS | Yes |
-| onClick | callback function | PropTypes.func.isRequired | Yes | Android、IOS | Yes |
-| disabled | Disable the checkbox button | PropTypes.bool | No | Android、IOS | Yes |
-| checkBoxColor | Tint color of the checkbox image (this props is for both checked and unchecked state) | PropTypes.string | Yes | Android、IOS | Yes |
-| checkedCheckBoxColor | Tint color of the checked state checkbox image (this prop will override value of checkBoxColor for checked state) | PropTypes.string | No | Android、IOS | Yes |
-| uncheckedCheckBoxColor | Tint color of the unchecked state checkbox image (this prop will override value of checkBoxColor for unchecked state) | PropTypes.string | No | Android、IOS | Yes |
-
-## 遗留问题
-
-## 其他
-
-## 开源协议
-
-本项目基于 [MIT License](https://github.com/crazycodeboy/react-native-check-box/blob/master/LICENSE) ,请自由地享受和参与开源。
\ No newline at end of file
+| ---------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------- | -------- |-------------| -------- |
+| style | Custom style checkbox | ViewPropTypes.style | No | Android IOS | Yes |
+| leftText | Custom left Text | PropTypes.string | No | Android IOS | Yes |
+| leftTextStyle | Custom left Text style | Text.propTypes.style | No | Android IOS | Yes |
+| rightText | Custom right Text | PropTypes.string | No | Android IOS | Yes |
+| rightTextView | Custom right TextView | PropTypes.element | No | Android IOS | Yes |
+| rightTextStyle | Custom right Text style | Text.propTypes.style | No | Android IOS | Yes |
+| checkedImage | Custom checked Image | PropTypes.element | No | Android IOS | Yes |
+| unCheckedImage | Custom unchecked Image | PropTypes.element | No | Android IOS | Yes |
+| isChecked | checkbox checked state | PropTypes.bool | Yes | Android IOS | Yes |
+| onClick | callback function | PropTypes.func.isRequired | Yes | Android IOS | Yes |
+| disabled | Disable the checkbox button | PropTypes.bool | No | Android IOS | Yes |
+| checkBoxColor | Tint color of the checkbox image (this props is for both checked and unchecked state) | PropTypes.string | Yes | Android IOS | Yes |
+| checkedCheckBoxColor | Tint color of the checked state checkbox image (this prop will override value of checkBoxColor for checked state) | PropTypes.string | No | Android IOS | Yes |
+| uncheckedCheckBoxColor | Tint color of the unchecked state checkbox image (this prop will override value of checkBoxColor for unchecked state) | PropTypes.string | No | Android IOS | Yes |
+
+## Known Issues
+
+## Others
+
+## License
+
+This project is licensed under [MIT License](https://github.com/crazycodeboy/react-native-check-box/blob/master/LICENSE).
--
Gitee
From 76908787e3a3b11a41c2ef53f64614839d73785d Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:50:15 +0800
Subject: [PATCH 08/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-ke?=
=?UTF-8?q?yboard-aware-scroll-view=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-keyboard-aware-scroll-view.md | 45 +++++++++----------
1 file changed, 21 insertions(+), 24 deletions(-)
diff --git a/en/react-native-keyboard-aware-scroll-view.md b/en/react-native-keyboard-aware-scroll-view.md
index ede718e5d..cd2d30107 100644
--- a/en/react-native-keyboard-aware-scroll-view.md
+++ b/en/react-native-keyboard-aware-scroll-view.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-keyboard-aware-scroll-view
@@ -13,17 +12,17 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases),并下载适用版本的 tgz 包
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
-> [!TIP] # 处替换为 tgz 包的路径
+
#### **npm**
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-keyboard-aware-scroll-view@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```tsx
import React, { useState, useRef } from "react";
@@ -96,21 +95,21 @@ const styles = StyleSheet.create({
});
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases)
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-详情见 [react-native-keyboard-aware-scroll-view 源库地址](https://github.com/APSL/react-native-keyboard-aware-scroll-view)
+For details, see [react-native-keyboard-aware-scroll-view](https://github.com/APSL/react-native-keyboard-aware-scroll-view)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------------- |
@@ -131,15 +130,13 @@ const styles = StyleSheet.create({
| scrollToEnd | Scroll to end with or without animation. | (animated?: bool = true) => void | NO | All | YES |
| scrollIntoView | Scrolls an element inside a KeyboardAwareScrollView into view. | (element: React.Element<\*>, options: { getScrollPosition: ?(parentLayout, childLayout, contentOffset) => { x: number, y: number, animated: boolean } }) => void | NO | All | YES |
-## 遗留问题
+## Known Issues
- [ ] RN0.72.28版本新架构暂未支持UIManager.viewIsDescendantOf() API,该API功能为:判断组件节点嵌套关系,并在callback中返回boolean类型参数: [issue#12](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/issues/12)
- [ ] 键盘抬起部分生命周期未HarmonyOS化,功能不受影响 问题:[issue#17](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/issues/17)
-## 其他
-
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/APSL/react-native-keyboard-aware-scroll-view/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/APSL/react-native-keyboard-aware-scroll-view/blob/master/LICENSE).
--
Gitee
From d620576833e0fe8f75ac2b8f347e3e3c73b677e2 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 16:57:29 +0800
Subject: [PATCH 09/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-sl?=
=?UTF-8?q?ider=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-slider.md | 47 ++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 25 deletions(-)
diff --git a/en/react-native-slider.md b/en/react-native-slider.md
index 575c2047f..26ac1bfae 100644
--- a/en/react-native-slider.md
+++ b/en/react-native-slider.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-slider
@@ -13,17 +12,17 @@
-> [!tip] [Github 地址](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/tree/sig)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/tree/sig)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/jeanregisser-react-native-slider Releases](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/releases),并下载适用版本的 tgz 包
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/jeanregisser-react-native-slider Releases](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
-> [!TIP] # 处替换为 tgz 包的路径
+
#### **npm**
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-slider@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState} from 'react';
@@ -120,7 +119,7 @@ export function SliderExample() {
{
setValue(0.9);
}}
- title="动画测试"
+ title="Animation test"
color="#841584"
/>
@@ -148,19 +147,19 @@ const styles = StyleSheet.create({
});
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/jeanregisser-react-native-slider Releases](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/jeanregisser-react-native-slider Releases](https://github.com/react-native-oh-library/jeanregisser-react-native-slider/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
->
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|----------|-------------|-------------------|
@@ -185,12 +184,10 @@ const styles = StyleSheet.create({
| animationType | Set to 'spring' or 'timing' to use one of those two types of animations with the default [animation properties](https://facebook.github.io/react-native/docs/animations.html). | string | No | iOS Android | yes |
| animationConfig | Used to configure the animation parameters. These are the same parameters in the [Animated library](https://facebook.github.io/react-native/docs/animations.html). | object | No | iOS Android | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/jeanregisser/react-native-slider/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License (MIT)](https://github.com/jeanregisser/react-native-slider/blob/master/LICENSE).
--
Gitee
From fb7271b3eb4b1a2e517634132d7bba56cdbf43bf Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 17:12:53 +0800
Subject: [PATCH 10/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-dy?=
=?UTF-8?q?namic=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-dynamic.md | 40 ++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/en/react-native-dynamic.md b/en/react-native-dynamic.md
index 719ee79bb..3ce7d0545 100644
--- a/en/react-native-dynamic.md
+++ b/en/react-native-dynamic.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-dynamic
@@ -13,12 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/codemotionapps/react-native-dynamic)
+> [!TIP] [GitHub address](https://github.com/codemotionapps/react-native-dynamic)
+## Installation and Usage
-## 安装与使用
-
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -36,9 +34,9 @@ yarn add react-native-dynamic@1.0.0
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
->[!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState } from 'react';
@@ -175,20 +173,20 @@ const dynamicStyles = new DynamicStyleSheet({
})
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+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.24;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.26; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.300; ROM: 3.0.0.24;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Prop | Description | Type | Required | Platform | HarmonyOS Support |
| ----- | ----- | -------- | -------- | -------- | -------- |
@@ -200,10 +198,10 @@ const dynamicStyles = new DynamicStyleSheet({
| `useColorSchemeContext` | Returns dark or light but reads value from context.| function | no | All | yes |
-## 遗留问题
+## Known Issues
+
+## Others
-## 其他
+## License
-## 开源协议
-本项目基于 [The MIT License (MIT)](https://github.com/codemotionapps/react-native-dynamic/blob/master/LICENSE) ,请自由地享受和参与开源。
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/codemotionapps/react-native-dynamic/blob/master/LICENSE).
--
Gitee
From 2c3557644871e4b7ac48dab15723108dbd65beff Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 17:17:12 +0800
Subject: [PATCH 11/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-md?=
=?UTF-8?q?5=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-md5.md | 37 +++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)
diff --git a/en/react-native-md5.md b/en/react-native-md5.md
index 0a086bbb5..5cf819fad 100644
--- a/en/react-native-md5.md
+++ b/en/react-native-md5.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.0
+> Template version: v0.2.2
react-native-md5
@@ -14,11 +13,11 @@
-> [!TIP] [Github 地址](https://github.com/kmend/react-native-md5)
+> [!TIP] [GitHub address](https://github.com/kmend/react-native-md5)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -36,7 +35,7 @@ yarn add react-native-md5@1.0.0
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
```js
import {ScrollView, StyleSheet,View,Text,TextInput,TouchableHighlight} from 'react-native';
@@ -93,20 +92,20 @@ export function md5TestExample() {
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
-1. RNOH: 0.72.20; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.200; ROM:3.0.0.18;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.20; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.200; ROM: 3.0.0.18;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## API
+## APIs
-> [!tip] "Platform"列表示该接口在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -118,12 +117,10 @@ export function md5TestExample() {
| str_hmac_md5 | 返回格式为字符串的HMAC-md5值 | function | no | All | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/kmend/react-native-md5/blob/master/README.md) ,请自由地享受和参与开源。
-
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/kmend/react-native-md5/blob/master/README.md).
--
Gitee
From 4b0c498a9d0e9cad9a26f3d8bc01147332481115 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 17:22:19 +0800
Subject: [PATCH 12/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-mo?=
=?UTF-8?q?dal-popover=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-modal-popover.md | 45 ++++++++++++++------------------
1 file changed, 20 insertions(+), 25 deletions(-)
diff --git a/en/react-native-modal-popover.md b/en/react-native-modal-popover.md
index 5f9d655de..4a0f262e9 100644
--- a/en/react-native-modal-popover.md
+++ b/en/react-native-modal-popover.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-modal-popover
@@ -13,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-modal-popover)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-modal-popover)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-modal-popover Releases](https://github.com/react-native-oh-library/react-native-modal-popover/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-modal-popover Releases](https://github.com/react-native-oh-library/react-native-modal-popover/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-modal-popover@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
@@ -263,21 +262,19 @@ export function PopoverCenterExample() {
};
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-modal-popover Releases](https://github.com/react-native-oh-library/react-native-modal-popover/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-modal-popover Releases](https://github.com/react-native-oh-library/react-native-modal-popover/releases)
+## Properties
-## 属性
-
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
-
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### Popover
@@ -298,8 +295,6 @@ export function PopoverCenterExample() {
| supportedOrientations | This prop is passed to react-native Modal, see react-native docs. Set this to ['portrait', 'landscape'] if you want your popover to resprect screen orientation. | array of enum('portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right') | NO | iOS | NO |
| calculateStatusBar | Defines if while use status bar height while calculating "Y" origin of anchor. | bool | NO | NO | NO |
-
-
### PopoverController
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -310,14 +305,14 @@ export function PopoverCenterExample() {
| setPopoverAnchor (PopoverController) / touchableRef (usePopover) | Pass this as ref to popover UI handle. This will bind popover display position to the position of this UI handle. | ref function | NO | ALL | YES |
| popoverAnchorRect | Pass this as fromRect prop of Popover component | Rect | YES | ALL | YES |
-## 遗留问题
+## Known Issues
+
- [ ] 不支持属性onDismiss [issue#4](https://github.com/react-native-oh-library/react-native-modal-popover/issues/4)
- [ ] 不支持属性supportedOrientations [issue#5](https://github.com/react-native-oh-library/react-native-modal-popover/issues/5)
- [ ] 不支持属性calculateStatusBar [issue#105](https://github.com/doomsower/react-native-modal-popover/issues/105)
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [License](https://github.com/doomsower/react-native-modal-popover/blob/master/LICENSE) ,请自由地享受和参与开源。
-
\ No newline at end of file
+This project is licensed under [MIT License](https://github.com/doomsower/react-native-modal-popover/blob/master/LICENSE).
--
Gitee
From feb8ddc59416fa0fce5eab33e70d784fa57f3914 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Fri, 25 Oct 2024 17:28:11 +0800
Subject: [PATCH 13/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-mo?=
=?UTF-8?q?dalbox=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-modalbox.md | 48 +++++++++++++++++--------------------
1 file changed, 22 insertions(+), 26 deletions(-)
diff --git a/en/react-native-modalbox.md b/en/react-native-modalbox.md
index 89f07d6ec..41bf5c602 100644
--- a/en/react-native-modalbox.md
+++ b/en/react-native-modalbox.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-modalbox
@@ -14,15 +12,15 @@
-> [!tip] [Github 地址](https://github.com/react-native-oh-library/react-native-modalbox)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-modalbox)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-modalbox Releases](https://github.com/react-native-oh-library/react-native-modalbox/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-modalbox Releases](https://github.com/react-native-oh-library/react-native-modalbox/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -40,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-modalbox@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import {
@@ -477,19 +475,19 @@ const styles = StyleSheet.create({
});
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-modalbox Releases](https://github.com/react-native-oh-library/react-native-modalbox/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-modalbox Releases](https://github.com/react-native-oh-library/react-native-modalbox/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------------- | :----------------------------------------------------------: | :------------: | :------: | :---------: | :---------------: |
@@ -516,23 +514,21 @@ const styles = StyleSheet.create({
| onOpened | When the modal is open and the animation is done | `function` | no | iOS/Android | yes |
| onClosingState | When the state of the swipe to close feature has changed (usefull to change the content of the modal, display a message for example) | `function` | no | iOS/Android | yes |
-## 静态方法
+## Static Methods
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---- | :-------------: | :--------: | :------: | :---------: | :---------------: |
| open | Open the modal | `function` | no | iOS/Android | yes |
| close | Close the modal | `function` | no | iOS/Android | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/maxs15/react-native-modalbox/blob/master/License.txt) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License (MIT)](https://github.com/maxs15/react-native-modalbox/blob/master/License.txt).
--
Gitee
From 37a9b19f61e140949a90ec62b85d0331b896dd0f Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 09:25:09 +0800
Subject: [PATCH 14/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-se?=
=?UTF-8?q?charts=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-secharts.md | 50 ++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/en/react-native-secharts.md b/en/react-native-secharts.md
index a0fa37c42..2549c179e 100644
--- a/en/react-native-secharts.md
+++ b/en/react-native-secharts.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-secharts
@@ -12,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/shifeng1993/react-native-secharts)
+> [!TIP] [GitHub address](https://github.com/shifeng1993/react-native-secharts)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -34,9 +34,9 @@ yarn add react-native-secharts@1.7.0
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { Component } from "react";
@@ -90,8 +90,8 @@ export default class SechartsBar extends Component {
{!this.state.value
- ? "这里显示被点击的值"
- : "被点击的值:" + this.state.value}
+ ? "The clicked value is displayed here."
+ : "The clicked value:" + this.state.value}
@@ -117,25 +117,25 @@ const styles = StyleSheet.create({
## Link
-> [!tip] 本库依赖的@react-native-oh-tpl/react-native-webview 使用的版本为 13.10.2-0.2.0
+> [!tip] This library depends on @react-native-oh-tpl/react-native-webview 13.10.2-0.2.0
-本库 HarmonyOS 侧实现依赖@react-native-oh-tpl/react-native-webview 的原生端代码,如已在 HarmonyOS 工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-webview. 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.
-如未引入请参照[@react-native-oh-tpl/react-native-webview 文档的 Link 章节](/zh-cn/react-native-webview.md)进行引入
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-webview](/en/react-native-webview.md) to add it to your project.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
-1. RNOH:0.72.27; SDK:HarmonyOS NEXT Developer Beta1 5.0.0.25;IDE:DevEco Studio 5.0.3.400SP7; ROM:3.0.0.25;
+1. RNOH: 0.72.27; SDK: HarmonyOS NEXT Developer Beta1 5.0.0.25; IDE: DevEco Studio 5.0.3.400SP7; ROM: 3.0.0.25;
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
@@ -146,11 +146,11 @@ const styles = StyleSheet.create({
| `renderLoading` | loading 时遮罩,默认不支持自定义,如需自定义,请修改 react-native-secharts 依赖的源码 main/dist/index.js 中 startInLoadingState={true} | function | no | All | yes |
| `onPress` | 画布中数据点击事件 | function | no | All | yes |
-## 实例方法
+## Static Methods
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Prop | Description | Type | Required | Platform | HarmonyOS Support |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
@@ -158,14 +158,14 @@ const styles = StyleSheet.create({
| `getImage` | 返回函数的参数 base64,可结合 RNFS 写入相册 | function | no | All | yes |
| `clear` | 清空 echarts 画布 | function | no | All | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
renderLoading 属性在 Android 和 iOS 设置之后不生效,HarmonyOS 与 Android,iOS 表现一致。 [issue#109](https://github.com/shifeng1993/react-native-secharts/issues/109)
原库使用了在线 CDN,Echarts 组件需在网络支持下才能正常展示,HarmonyOS 与 Android,iOS 表现一致。 [issue#79](https://github.com/shifeng1993/react-native-secharts/issues/79)
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/shifeng1993/react-native-secharts/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/shifeng1993/react-native-secharts/blob/master/LICENSE).
--
Gitee
From 705fd7239ad8fa5e8b570771a243b749c7714da7 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 09:48:52 +0800
Subject: [PATCH 15/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-subscribe?=
=?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-subscribe.md | 74 ++++++++++++++++++++++++-------------------
1 file changed, 41 insertions(+), 33 deletions(-)
diff --git a/en/react-subscribe.md b/en/react-subscribe.md
index 03b64ead3..72fa7c2d8 100644
--- a/en/react-subscribe.md
+++ b/en/react-subscribe.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-subscribe
@@ -13,9 +13,10 @@
-> [!TIP] [Github 地址](https://github.com/tdzl2003/react-subscribe)
+> [!TIP] [GitHub address](https://github.com/tdzl2003/react-subscribe)
+
+## Installation and Usage
-## 安装与使用
#### **npm**
@@ -32,7 +33,7 @@ yarn add react-subscribe@1.3.2
-下面的代码展示了Timer这个组件的基本使用场景:
+The following code shows the basic use scenario of the repository:
```js
import React from 'react';
@@ -54,23 +55,26 @@ export class ReactSubscribeTimerTest extends React.Component {
if (this.state.cd <= 0) {
return (
- this.timeClick()}>点击
+ this.timeClick()}>click
Cooldown is over and onTimer will not be called again!
);
}
return (
- this.timeClick()}>点击
+ this.timeClick()}>click
{this.state.listening && There is still {this.state.cd} seconds to go. }
- 点击按钮启动倒计时
+ Click the button to start the countdown
);
}
}
```
-下面的代码展示了Subscribe这个组件的基本使用场景:
-> [!WARNING] 使用时 target一般配合fbemitter组件使用
+
+The following code shows the basic use scenario of the Subscribe component:
+
+> [!WARNING] Generally, the `target` is used together with the fbemitter component.
+>
```js
import React from 'react';
import { Subscribe } from 'react-subscribe';
@@ -130,12 +134,12 @@ export class ReactSubscribeSubscribeTest extends React.Component {
value={111}
/>
this.onChangeMessage(text)}
value={111}
/>
- this.sendMessage()}>点击
+ this.sendMessage()}>click
'1.监听test1'
{this.test1Message !== null && test1监听数据:{this.test1Message} }
@@ -148,7 +152,8 @@ export class ReactSubscribeSubscribeTest extends React.Component {
}
}
```
-使用样例
+
+Example
```
import { EventEmitter } from 'fbemitter';
@@ -156,7 +161,9 @@ import { EventEmitter } from 'fbemitter';
```
-下面的代码展示了Fetch这个组件的基本使用场景:
+
+The following code shows the basic use scenario of the Fetch component:
+
```js
import React from 'react';
import { View,StyleSheet,Text,TouchableOpacity,Button } from 'react-native';
@@ -188,7 +195,7 @@ export class ReactSubscribeFetchTest extends React.Component {
if(this.props.manners === 1){
return(
- this.timeClick()}>点击
+ this.timeClick()}>click
{this.state.listening &&
}
@@ -197,7 +204,7 @@ export class ReactSubscribeFetchTest extends React.Component {
}
return(
- this.timeClick()}>点击
+ this.timeClick()}>click
{this.state.listening &&
}
@@ -214,7 +221,7 @@ function SomeComponent({ data, loading, error, reload, statusCode }) {
return (
error:{error.message}
- reload()}>点击
+ reload()}>click
);
}
@@ -241,7 +248,7 @@ function SomeComponent2({ data, loading, error, reload }) {
return (
Error: {error.message}
- reload}>点击
+ reload}>click
);
}
@@ -253,23 +260,24 @@ function SomeComponent2({ data, loading, error, reload }) {
);
}
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
-1. RNOH: 0.72.26; SDK:HarmonyOS-Next-DB1; IDE:DevEco Studio 5.0.3.300; ROM:3.0.0.25;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+1. RNOH: 0.72.26; SDK: HarmonyOS-Next-DB1; IDE: DevEco Studio 5.0.3.300; ROM: 3.0.0.25;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## 属性
+## Properties
->[!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
->[!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### react-subscribe:
-Fetch组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Fetch.js)
+
+For details about the Fetch component, see [react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Fetch.js)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -279,7 +287,7 @@ Fetch组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscrib
| type | 请求返回数据处理的类型(值只能为'text'或 'json'或'blob') | string | yes | Android/iOS | yes |
| children| 子组件,接收请求返回数据处理,接收参数有(loading:是否在请求中,statusCode:请求状态码(自定义请求不设置该值),data:返回业务数据,error:请求错误信息(例:请求超时),reload:刷新当前请求方法) | element | no | Android/iOS | yes |
-Timer组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Timer.js)
+For details about the Timer component, see [react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Timer.js)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -287,7 +295,7 @@ Timer组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscrib
| onTimer | 定时执行方法 | function | no | Android/iOS | yes |
| children | 子组件 | element | no | Android/iOS | yes |
-Subscribe组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Subscribe.js)
+For details about the Subscribe component, see [react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/Subscribe.js)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -296,7 +304,7 @@ Subscribe组件详情见[react-subscribe](https://github.com/tdzl2003/react-subs
| listener | 监听方法(当发射器触发当前事件时执行的方法) | function | no | Android/iOS | yes |
| children | 子组件 | element | no | Android/iOS | yes |
-SubscribeDOM组件详情见[react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/SubscribeDOM.js)
+For details about the SubscribeDOM component, see [react-subscribe](https://github.com/tdzl2003/react-subscribe/blob/master/src/SubscribeDOM.js)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---- | ----------- | ---- | -------- | -------- | ------------------ |
@@ -305,10 +313,10 @@ SubscribeDOM组件详情见[react-subscribe](https://github.com/tdzl2003/react-s
| listener | 监听方法(当发射器触发当前事件时执行的方法) | function | no | webOnly | no |
| children | 子组件 | element | no | webOnly | no |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The ISC License (ISC)](https://www.isc.org/licenses/) ,请自由地享受和参与开源。
\ No newline at end of file
+This project is licensed under [The ISC License (ISC)](https://www.isc.org/licenses/).
\ No newline at end of file
--
Gitee
From 3c367f74632047b2e851469e97dd31da57a061fb Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 10:02:47 +0800
Subject: [PATCH 16/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-pi?=
=?UTF-8?q?ckers=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-pickers.md | 58 ++++++++++++++++++--------------------
1 file changed, 27 insertions(+), 31 deletions(-)
diff --git a/en/react-native-pickers.md b/en/react-native-pickers.md
index 1ca16654c..ab7dc1e76 100644
--- a/en/react-native-pickers.md
+++ b/en/react-native-pickers.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-pickers
@@ -14,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/iberHK/react-native-picker)
+> [!TIP] [GitHub address](https://github.com/iberHK/react-native-picker)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -36,9 +34,9 @@ yarn add react-native-pickers@2.0.0
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import { View, Text, TouchableOpacity } from "react-native";
@@ -46,23 +44,23 @@ import { BaseComponent, AreaPicker, DatePicker } from "react-native-pickers";
var AreaJson = [
{
- name: "香港",
- city: [{ name: "香港", area: ["中西區", "灣仔區", "東區", "南區"] }],
+ name: "Hong Kong",
+ city: [{ name: "Hong Kong", area: ["中西區", "灣仔區", "東區", "南區"] }],
},
{
- name: "台灣",
+ name: "Taiwan",
city: [
{
- name: "台灣",
+ name: "Taiwan",
area: ["臺北市", "高雄市", "臺北縣", "桃園縣", "新竹縣"],
},
],
},
{
- name: "澳門",
+ name: "Macao",
city: [
{
- name: "澳門",
+ name: "Macao",
area: ["花地瑪堂區", "聖安多尼堂區", "大堂區", "望德堂區"],
},
],
@@ -73,7 +71,7 @@ export default class MainPage extends BaseComponent {
constructor(props) {
super(props);
this.state = {
- unit: ["年", "月", "日"],
+ unit: ["Year", "Month ", "Day"],
startYear: 1900,
active: false,
modalVisible: false,
@@ -128,7 +126,7 @@ export default class MainPage extends BaseComponent {
alignItems: "center",
}}
>
- {this.renderButton("行政区域picker", () => {
+ {this.renderButton("Administrative region picker", () => {
this.AreaPicker.show();
})}
{this.renderButton("DatePicker", () => {
@@ -162,23 +160,23 @@ export default class MainPage extends BaseComponent {
## Link
-本库依赖@react-native-oh-tpl/react-native-svg,如已在鸿蒙工程中引入过该库,则无需再次引入。
+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.
-如未引入请参照[@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)进行引入
+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.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+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;
+1. RNOH: 0.72.26; SDK: HarmonyOS NEXT Developer Beta1; IDE: DevEco Studio 5.0.3.300; ROM: 3.0.0.25;
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 IOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### AlertDialog
@@ -326,12 +324,10 @@ export default class MainPage extends BaseComponent {
| borderRadius | 背景圆角 | number | no | All | yes |
| backgroundColor | 背景颜色 | string | no | All | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The ISC License (ISC)](https://www.isc.org/licenses/) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The ISC License (ISC)](https://www.isc.org/licenses/).
--
Gitee
From 721eb14560144c9a7ee1a983452c2383e0270294 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 10:13:33 +0800
Subject: [PATCH 17/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-QR?=
=?UTF-8?q?Code=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-QRCode.md | 52 +++++++++++++++++++--------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/en/react-native-QRCode.md b/en/react-native-QRCode.md
index adcdd780d..aeb114825 100644
--- a/en/react-native-QRCode.md
+++ b/en/react-native-QRCode.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-qrcode
@@ -13,15 +13,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-qrcode)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-qrcode)
-## 安装与使用
+## Installation and Usage
-1、请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-qrcode](https://github.com/react-native-oh-library/react-native-qrcode/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-qrcode](https://github.com/react-native-oh-library/react-native-qrcode/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +39,9 @@ yarn add @react-native-oh-tpl/react-native-qrcode@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState } from "react";
@@ -60,14 +60,14 @@ export const QrCodeExamle = () => {
return (
setText(text)}
value={text}
/>
-
-
+
+
{QRCodeValue && (
@@ -102,25 +102,25 @@ const styles = StyleSheet.create({
## Link
-本库鸿蒙侧实现依赖@react-native-oh-tpl/react-native-webview 的原生端代码,如已在鸿蒙工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-webview. 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.
-如未引入请参照[@react-native-oh-tpl/react-native-webview 文档](/zh-cn/react-native-webview.md)进行引入
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-webview](/en/react-native-webview.md) to add it to your project.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-qrcode](https://github.com/react-native-oh-library/react-native-qrcode/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-qrcode](https://github.com/react-native-oh-library/react-native-qrcode/releases)
-## 属性
+## Properties
-### QRCode
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
-
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+### QRCode
该库为 UI 组件库,通过配置属性标签,实现对应的功能。
@@ -131,10 +131,10 @@ const styles = StyleSheet.create({
| bgColor | string | backgroundColor | no | iOS/Android | yes |
| fgColor | string | fgColor | no | iOS/Android | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/react-native-qrcode/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-oh-library/react-native-qrcode/blob/master/LICENSE).
--
Gitee
From c8d28fef79d794d4fd2bcb3543bd56e076c0beaf Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 10:20:00 +0800
Subject: [PATCH 18/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-ta?=
=?UTF-8?q?b-navigator=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-tab-navigator.md | 42 +++++++++++++++-----------------
1 file changed, 19 insertions(+), 23 deletions(-)
diff --git a/en/react-native-tab-navigator.md b/en/react-native-tab-navigator.md
index 13d150c94..84c3e21da 100644
--- a/en/react-native-tab-navigator.md
+++ b/en/react-native-tab-navigator.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-tab-navigator
@@ -15,15 +13,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-tab-navigator)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-tab-navigator)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-tab-navigator Releases](https://github.com/react-native-oh-library/react-native-tab-navigator/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-tab-navigator Releases](https://github.com/react-native-oh-library/react-native-tab-navigator/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -41,9 +39,9 @@ yarn add @react-native-oh-tpl/react-native-tab-navigator@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```ts
import React, { useState } from "react";
@@ -116,19 +114,19 @@ function Profile() {
export default App;
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-tab-navigator Releases](https://github.com/react-native-oh-library/react-native-tab-navigator/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-tab-navigator Releases](https://github.com/react-native-oh-library/react-native-tab-navigator/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### TabNavigator props
@@ -158,12 +156,10 @@ export default App;
| accessibilityLabel | override text for screen readers | string | No | iOS/Android | Yes |
| testID | used to locate this item in end-to-end-tests | string | No | iOS/Android | Yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/ptomasroos/react-native-tab-navigator/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License (MIT)](https://github.com/ptomasroos/react-native-tab-navigator/blob/master/LICENSE).
--
Gitee
From aaa6b85a66a3d790b8d64abab4fc02cf4634676d Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 10:40:42 +0800
Subject: [PATCH 19/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-co?=
=?UTF-8?q?mmunity-netinfo=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-community-netinfo.md | 90 +++++++++++++---------------
1 file changed, 43 insertions(+), 47 deletions(-)
diff --git a/en/react-native-community-netinfo.md b/en/react-native-community-netinfo.md
index ea29d95e5..c29374e0d 100644
--- a/en/react-native-community-netinfo.md
+++ b/en/react-native-community-netinfo.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-community/netinfo
@@ -12,15 +12,15 @@
-> [!tip] [Github 地址](https://github.com/react-native-oh-library/react-native-netinfo)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-netinfo)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -38,9 +38,9 @@ yarn add @react-native-oh-tpl/netinfo@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React from "react";
@@ -75,11 +75,11 @@ export default App;
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -90,18 +90,15 @@ export default App;
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -110,22 +107,22 @@ export default App;
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 RNCNetInfoPackage
+### 3. Configuring CMakeLists and Introducing RNCNetInfoPackage
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -163,7 +160,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -182,9 +179,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 NetInfoPackage
+### 4. Introducing NetInfoPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -198,33 +195,32 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
-
-## 约束与限制
+Then build and run the code.
-## 兼容性
+## Constraints
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+### Compatibility
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases)
+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.
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
#### NetInfoStateType
@@ -291,11 +287,11 @@ ohpm install
|-------------------------|-------------------------------------------------------------------------------------------------------------|:-------:|:--------:|:-----------:|:-----------------:|
| `isConnectionExpensive` | If the network connection is considered "expensive". This could be in either energy or monetary terms. | boolean | yes | iOS Android | yes |
-## 静态方法
+## Static Methods
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------:|:--------:|:-----------:|:-----------------:|
@@ -305,13 +301,13 @@ ohpm install
| `useNetInfo()` | A React Hook which can be used to get access to the latest state from the global instance. It returns a hook with the NetInfoState type. | function | yes | iOS Android | yes |
| `useNetInfoInstance()` | A React Hook which can be used to create and manage an isolated instance of a network manager class. It returns a refresh function and the current NetInfoState. | function | yes | iOS Android | yes |
-## 遗留问题
+## Known Issues
- [ ] bluetooth接口属性未适配: [issue#14](https://github.com/react-native-oh-library/react-native-netinfo/issues/14)
- [ ] wimax接口属性未适配: [issue#15](https://github.com/react-native-oh-library/react-native-netinfo/issues/15)
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-netinfo/react-native-netinfo/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-netinfo/react-native-netinfo/blob/master/LICENSE).
--
Gitee
From f4186c1504e5461a1fb0da240e73194fef1475af Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 10:55:32 +0800
Subject: [PATCH 20/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-pi?=
=?UTF-8?q?cker-picker=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-picker-picker.md | 98 ++++++++++++++++----------------
1 file changed, 48 insertions(+), 50 deletions(-)
diff --git a/en/react-native-picker-picker.md b/en/react-native-picker-picker.md
index 5e5881d93..877a0c827 100644
--- a/en/react-native-picker-picker.md
+++ b/en/react-native-picker-picker.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-picker/picker
@@ -13,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/picker)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/picker)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/picker@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import * as React from "react";
@@ -64,17 +63,17 @@ export const PickerExample = ()=>{
}
```
-## 使用 Codegen
+## Use Codegen
-本库已经适配了 Codegen ,在使用前需要主动执行生成三方库桥接代码,详细请参考 [Codegen 使用文档。](/zh-cn/codegen.md)
+If this repository has been adapted to `Codegen`, generate the bridge code of the third-party library by using the `Codegen`. For details, see [Codegen Usage Guide](/en/codegen.md).
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -85,18 +84,15 @@ export const PickerExample = ()=>{
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -106,22 +102,22 @@ export const PickerExample = ()=>{
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.在 ArkTs 侧引入 picker 组件
+### 3. Introducing picker Component to ArkTS
-找到 **function buildCustomComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code:
```diff
...
@@ -141,9 +137,9 @@ ohpm install
...
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
+> [!TIP] If the repository uses a mixed solution, the component name needs to be added.
-在`entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets` 找到常量 `arkTsComponentNames` 在其数组里添加组件名
+Find the constant `arkTsComponentNames` in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets` and add the component name to the array.
```diff
const arkTsComponentNames: Array = [
@@ -154,9 +150,9 @@ const arkTsComponentNames: Array = [
];
```
-### 4.在 ArkTs 侧引入 RNCPickerPackage
+### 4. Introducing RNCPickerPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -170,32 +166,32 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 Yes 表示 HarmonyOS 平台支持该属性;No 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### PickerProps
@@ -229,24 +225,26 @@ ohpm install
| `enabled` | If set to false, the specific item will be disabled, i.e. the user will not be able to make a selection. | boolean | No | Android | No |
| `contentDescription` | Sets the content description to the Picker Item. | string | No | Android | No |
-## 静态方法
+## Static Methods
+
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|---------|---------------------------------|----------|----------|----------|-------------------|
| `blur` | Programmatically closes picker. | function | No | Android | No |
| `focus` | Programmatically opens picker. | function | No | Android | No |
-## 遗留问题
+## Known Issues
- [ ] numberOfLines 属性不支持[issue#2](https://github.com/react-native-oh-library/picker/issues/2)
- [ ] PickerItemProps 的 color 和 fontFamily 不支持(OH 的 Picker 组件不支持单独设置 PickerItem 的样式) [issue#21](https://github.com/react-native-oh-library/picker/issues/21)
- [ ] themeVariant 属性不支持[issue#22](https://github.com/react-native-oh-library/picker/issues/22)
- [ ] itemStyle 不支持设置 textAlign(OH 的 Picker 不支持设置)[issue#23](https://github.com/react-native-oh-library/picker/issues/23)
-## 其他
-
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-picker/picker/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-picker/picker/blob/master/LICENSE).
--
Gitee
From 6437da9cb91b7e9be785073e01900097f1c2ff12 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 11:15:04 +0800
Subject: [PATCH 21/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-pi?=
=?UTF-8?q?cker-picker(nocodegen)=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-picker-picker(nocodegen).md | 100 +++++++++-----------
1 file changed, 47 insertions(+), 53 deletions(-)
diff --git a/en/react-native-picker-picker(nocodegen).md b/en/react-native-picker-picker(nocodegen).md
index 2a8069c8d..fc4936aa8 100644
--- a/en/react-native-picker-picker(nocodegen).md
+++ b/en/react-native-picker-picker(nocodegen).md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-picker/picker
@@ -13,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/picker)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/picker)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/picker@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import * as React from "react";
@@ -66,11 +65,11 @@ export const PickerExample = ()=>{
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -81,18 +80,15 @@ export const PickerExample = ()=>{
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -102,22 +98,22 @@ export const PickerExample = ()=>{
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 PickerPackge
+### 3. Configuring CMakeLists and Introducing PickerPackge
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -155,7 +151,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -174,9 +170,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 picker 组件
+### 4. Introducing picker Component to ArkTS
-找到 **function buildCustomComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code:
```diff
...
@@ -196,9 +192,9 @@ export function buildCustomRNComponent(ctx: ComponentBuilderContext) {
...
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
+> [!TIP] If the repository uses a mixed solution, the component name needs to be added.
-在`entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets` 找到常量 `arkTsComponentNames` 在其数组里添加组件名
+Find the constant `arkTsComponentNames` in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets` and add the component name to the array.
```diff
const arkTsComponentNames: Array = [
@@ -209,9 +205,9 @@ const arkTsComponentNames: Array = [
];
```
-### 5.在 ArkTs 侧引入 RNCPickerPackage
+### 5. Introducing RNCPickerPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -225,32 +221,32 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 6.运行
+### 6. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/picker Releases](https://github.com/react-native-oh-library/picker/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 Yes 表示 HarmonyOS 平台支持该属性;No 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### PickerProps
@@ -284,28 +280,26 @@ ohpm install
| `enabled` | If set to false, the specific item will be disabled, i.e. the user will not be able to make a selection. | boolean | No | Android | No |
| `contentDescription` | Sets the content description to the Picker Item. | string | No | Android | No |
-## 静态方法
+## Static Methods
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
|---------|---------------------------------|----------|----------|----------|-------------------|
| `blur` | Programmatically closes picker. | function | No | Android | No |
| `focus` | Programmatically opens picker. | function | No | Android | No |
-## 遗留问题
+## Known Issues
- [ ] numberOfLines 属性不支持[issue#2](https://github.com/react-native-oh-library/picker/issues/2)
- [ ] PickerItemProps 的 color 和 fontFamily 不支持(OH 的 Picker 组件不支持单独设置 PickerItem 的样式) [issue#21](https://github.com/react-native-oh-library/picker/issues/21)
- [ ] themeVariant 属性不支持[issue#22](https://github.com/react-native-oh-library/picker/issues/22)
- [ ] itemStyle 不支持设置 textAlign(OH 的 Picker 不支持设置)[issue#23](https://github.com/react-native-oh-library/picker/issues/23)
-## 其他
-
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/picker/blob/sig/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-oh-library/picker/blob/sig/LICENSE).
--
Gitee
From 2fa5c3e73e4aefc60ed823b9c643050599be2fc1 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 11:23:08 +0800
Subject: [PATCH 22/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-co?=
=?UTF-8?q?mmunity-progress-view=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-community-progress-view.md | 90 ++++++++++------------
1 file changed, 42 insertions(+), 48 deletions(-)
diff --git a/en/react-native-community-progress-view.md b/en/react-native-community-progress-view.md
index b61722fca..106926290 100644
--- a/en/react-native-community-progress-view.md
+++ b/en/react-native-community-progress-view.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-community/progress-view
@@ -13,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/progress-view)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/progress-view)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/progress-view@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import { ProgressView } from "@react-native-community/progress-view";
@@ -59,11 +58,11 @@ export default function ProgressViewExample() {
## Link
-目前HarmonyOS暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的HarmonyOS工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -74,18 +73,15 @@ export default function ProgressViewExample() {
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入(推荐)
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -94,22 +90,22 @@ export default function ProgressViewExample() {
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 ProgressViewPackage
+### 3. Configuring CMakeLists and Introducing ProgressViewPackage
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -138,7 +134,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_BEGIN: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -156,9 +152,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 ProgressViewPackage 组件
+### 4. Introducing ProgressViewPackage Component to ArkTS
-找到 **function buildCustomComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code:
```diff
...
@@ -179,9 +175,9 @@ export function buildCustomRNComponent(ctx: ComponentBuilderContext) {
...
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
+> [!TIP] If the repository uses a mixed solution, the component name needs to be added.
-在`entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets` 找到常量 `arkTsComponentNames` 在其数组里添加组件名
+Find the constant `arkTsComponentNames` in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets` and add the component name to the array.
```diff
const arkTsComponentNames: Array = [
@@ -192,32 +188,32 @@ const arkTsComponentNames: Array = [
];
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-## 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------- | ------------------------------------------ | ------ | -------- | -------- | ----------------- |
@@ -229,14 +225,12 @@ ohpm install
| `progressViewStyle` | The progress bar style. Network images only work on Windows. | enum('default', 'bar') | No | All | No |
| `isIndeterminate` | Turns progress bar into an indeterminate progress bar. | bool | No | Windows | Partially |
-## 遗留问题
+## Known Issues
- [ ] 原库部分接口在 HarmonyOS 中没有对应属性及接口处理相关逻辑,问题: [issue#1](https://github.com/react-native-oh-library/progress-view/issues/5)
-## 其他
-
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/progress-view/blob/harmony/LICENSE) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-oh-library/progress-view/blob/harmony/LICENSE).
--
Gitee
From f978a93254eba9e553c9d884a48c972499dca984 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 11:28:57 +0800
Subject: [PATCH 23/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-co?=
=?UTF-8?q?mmunity-progress-view-capi=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...act-native-community-progress-view-capi.md | 83 +++++++++----------
1 file changed, 38 insertions(+), 45 deletions(-)
diff --git a/en/react-native-community-progress-view-capi.md b/en/react-native-community-progress-view-capi.md
index da63b051d..256ff13a7 100644
--- a/en/react-native-community-progress-view-capi.md
+++ b/en/react-native-community-progress-view-capi.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-community/progress-view
@@ -12,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/progress-view)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/progress-view)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -38,9 +38,9 @@ yarn add @react-native-oh-tpl/progress-view@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import { ProgressView } from "@react-native-community/progress-view";
@@ -48,7 +48,6 @@ import { ProgressView } from "@react-native-community/progress-view";
export default function ProgressViewExample() {
return (
@@ -58,11 +57,11 @@ export default function ProgressViewExample() {
## Link
-目前HarmonyOS暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的HarmonyOS工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -73,18 +72,15 @@ export default function ProgressViewExample() {
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入(推荐)
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -93,24 +89,22 @@ export default function ProgressViewExample() {
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
+Method 2: Directly link to the source code.
-方法二:直接链接源码
-
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 ProgressViewPackage
-
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+### 3. Configuring CMakeLists and Introducing ProgressViewPackage
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -148,7 +142,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -166,33 +160,32 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.运行
+### 4. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
-
-## 约束与限制
+Then build and run the code.
-### 兼容性
+## Constraints
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+### Compatibility
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases)
+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.
-## 属性
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/progress-view Releases](https://github.com/react-native-oh-library/progress-view/releases)
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------------------- | ------------------------------------------ | ------ | -------- | -------- | ----------------- |
@@ -204,12 +197,12 @@ ohpm install
| `progressViewStyle` | The progress bar style. Network images only work on Windows. | enum('default', 'bar') | No | All | Partially |
| `isIndeterminate` | Turns progress bar into an indeterminate progress bar. | bool | No | Windows | No |
-## 遗留问题
+## Known Issues
- [ ] 原库接口progressImage,trackImage,isIndeterminate,trackTintColor在 HarmonyOS 中没有对应属性及接口处理相关逻辑,问题: [issue#1](https://github.com/react-native-oh-library/progress-view/issues/10)
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-progress-view/progress-view/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-progress-view/progress-view/blob/master/LICENSE).
--
Gitee
From 52e0dad4cecf483ddc6229998062085f88fda43c Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 11:54:54 +0800
Subject: [PATCH 24/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-co?=
=?UTF-8?q?mmunity-geolocation=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-community-geolocation.md | 95 +++++++++++-------------
1 file changed, 44 insertions(+), 51 deletions(-)
diff --git a/en/react-native-community-geolocation.md b/en/react-native-community-geolocation.md
index 106e3a044..7c3c12f58 100644
--- a/en/react-native-community-geolocation.md
+++ b/en/react-native-community-geolocation.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-community/geolocation
@@ -14,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-geolocation/tree/sig)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-geolocation/tree/sig)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/geolocation Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/geolocation Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -40,9 +38,9 @@ yarn add @react-native-oh-tpl/geolocation@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import Geolocation from "@react-native-community/geolocation";
@@ -65,11 +63,11 @@ export function GeolocationDemo(): JSX.Element {
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -80,18 +78,15 @@ export function GeolocationDemo(): JSX.Element {
}
```
-### 2.引入原生端代码
-
-目前有两种方法:
+### 2. Introducing Native Code
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Currently, two methods are available:
-方法一:通过 har 包引入(推荐)
+Method 1 (recommended): Use the HAR file.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -100,22 +95,22 @@ export function GeolocationDemo(): JSX.Element {
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 geolocation
+### 3. Configuring CMakeLists and Introducing geolocation
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -154,7 +149,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -171,9 +166,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 GeolocationPackage
+### 4. Introducing GeolocationPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -187,30 +182,30 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/geolocation Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/geolocation Releases](https://github.com/react-native-oh-library/react-native-geolocation/releases)
-### 权限要求
+### Permission Requirements
-1.打开 `entry/src/main/module.json5`,添加相关配置
+1. Include applicable permissions in the module.json5 file within the entry directory.
```diff
...
@@ -245,9 +240,9 @@ ohpm install
}
```
-2.在 entry 目录下添加申请权限的原因
+2. Apply the reasons for applicable permission in the entry directory.
-打开 `entry/src/main/resources/base/element/string.json`,添加:
+Open the `entry/src/main/resources/base/element/string.json` file and add the following code:
```diff
...
@@ -261,11 +256,11 @@ ohpm install
}
```
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support | Notes |
| -------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------- | -------- | ----------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -275,14 +270,12 @@ ohpm install
| watchPosition | Invokes the success callback whenever the location changes. Returns a watchId (number) | function(success(postion),error(error),option) | NO | iOS Android | partially | In position, only altitudeAccuracy is not supported. In error, only code and message are supported. In option, only interval and distanceFilter are supported. |
| clearWatch | Clears watch observer by id returned by watchPosition() | function(watchID) | NO | iOS Android | yes | watchID supports only the default value 0. |
-## 遗留问题
+## Known Issues
- [ ] @react-native-oh-tpl/geolocation 部分属性未完全实现 HarmonyOS 化,maximumAge 延时问题: [issue#6](https://github.com/react-native-oh-library/react-native-geolocation/issues/6)
-## 其他
-
-## 开源协议
+## Others
-本项目基于 [The MIT License(MIT)](https://github.com/michalchudziak/react-native-geolocation/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License(MIT)](https://github.com/michalchudziak/react-native-geolocation/blob/master/LICENSE).
--
Gitee
From f010281ed1cadc2b976ffd32173c78759f0eea0c Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 14:21:27 +0800
Subject: [PATCH 25/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-cl?=
=?UTF-8?q?ipboard-clipboard=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-clipboard-clipboard.md | 96 ++++++++++++--------------
1 file changed, 44 insertions(+), 52 deletions(-)
diff --git a/en/react-native-clipboard-clipboard.md b/en/react-native-clipboard-clipboard.md
index 008b97e42..3c77f4a58 100644
--- a/en/react-native-clipboard-clipboard.md
+++ b/en/react-native-clipboard-clipboard.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-clipboard/clipboard
@@ -13,15 +12,15 @@
-> [!tip] [Github 地址](https://github.com/react-native-oh-library/clipboard/tree/sig)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/clipboard/tree/sig)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/clipboard Releases](https://github.com/react-native-oh-library/clipboard/releases),并下载适用版本的 tgz 包
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/clipboard Releases](https://github.com/react-native-oh-library/clipboard/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/clipboard@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import Clipboard from "@react-native-clipboard/clipboard";
@@ -77,11 +76,11 @@ export default App;
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -92,18 +91,15 @@ export default App;
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -113,22 +109,22 @@ export default App;
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 ClipboardPackage
+### 3. Configuring CMakeLists and Introducing ClipboardPackage
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -166,7 +162,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: manual_package_linking_2
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
#include "RNOH/PackageProvider.h"
@@ -185,9 +181,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 ClipboardPackage
+### 4. Introducing ClipboardPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
import type {RNPackageContext, RNPackage} from 'rnoh/ts';
@@ -203,34 +199,32 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/clipboard Releases](https://github.com/react-native-oh-library/clipboard/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/clipboard Releases](https://github.com/react-native-oh-library/clipboard/releases)
-### 权限要求
+### Permission Requirements
> [!tip] "ohos.permission.READ_PASTEBOARD"权限等级为system_basic ,授权方式为user_grant ,[使用 ACL 签名的配置指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/signing-0000001587684945-V3#section157591551175916)
-#### 在 entry 目录下的module.json5中添加权限
-
-打开 `entry/src/main/module.json5`,添加:
+1. Include applicable permissions in the module.json5 file within the entry directory.
```diff
...
@@ -248,9 +242,9 @@ ohpm install
]
```
-#### 在 entry 目录下添加申请剪切板权限的原因
+2. Apply the reasons for applicable permission in the entry directory.
-打开 `entry/src/main/resources/base/element/string.json`,添加:
+Open the `entry/src/main/resources/base/element/string.json` file and add the following code:
```diff
...
@@ -264,11 +258,11 @@ ohpm install
}
```
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ----------- | ----------------- |
@@ -286,12 +280,10 @@ ohpm install
| getImageJPG | get base64 string of JPG Image | function | NO | iOS | yes |
| getImagePNG | get base64 string of PNG Image | function | NO | iOS | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-clipboard/clipboard/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-clipboard/clipboard/blob/master/LICENSE).
--
Gitee
From cc955a227c58fb4324d096e1fa474c0307c28901 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 14:31:10 +0800
Subject: [PATCH 26/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-co?=
=?UTF-8?q?mmunity-toolbar-android=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-community-toolbar-android.md | 90 +++++++++-----------
1 file changed, 42 insertions(+), 48 deletions(-)
diff --git a/en/react-native-community-toolbar-android.md b/en/react-native-community-toolbar-android.md
index 852dffb48..4fb1f5094 100644
--- a/en/react-native-community-toolbar-android.md
+++ b/en/react-native-community-toolbar-android.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@react-native-community/toolbar-android
@@ -13,15 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/toolbar-android/tree/sig)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/toolbar-android/tree/sig)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/toolbar-android Releases](https://github.com/react-native-oh-library/toolbar-android/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/toolbar-android Releases](https://github.com/react-native-oh-library/toolbar-android/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/toolbar-android@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState } from "react";
@@ -122,11 +121,11 @@ export default App;
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -137,18 +136,15 @@ export default App;
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -157,22 +153,22 @@ export default App;
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-### 3.配置 CMakeLists 和引入 ToolbarAndroidPackage
+### 3. Configuring CMakeLists and Introducing ToolbarAndroidPackage
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+Open `entry/src/main/cpp/CMakeLists.txt` and add the following code:
```diff
project(rnapp)
@@ -206,7 +202,7 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
# RNOH_END: link_packages
```
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code:
```diff
...
@@ -222,9 +218,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
}
```
-### 4.在 ArkTs 侧引入 RNCToolbarAndroid 组件
+### 4. Introducing RNCToolbarAndroid Component to ArkTS
-找到 **function buildCustomRNComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code:
```diff
...
@@ -244,9 +240,9 @@ std::vector> PackageProvider::getPackages(Package::Cont
...
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
+> [!TIP] If the repository uses a mixed solution, the component name needs to be added.
-在`entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets` 找到常量 `arkTsComponentNames` 在其数组里添加组件名
+Find the constant `arkTsComponentNames` in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets` and add the component name to the array.
```diff
const arkTsComponentNames: Array = [
@@ -255,32 +251,32 @@ const arkTsComponentNames: Array = [
];
```
-### 5.运行
+### 5. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/toolbar-android Releases](https://github.com/react-native-oh-library/toolbar-android/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/toolbar-android Releases](https://github.com/react-native-oh-library/toolbar-android/releases)
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
Inherits [View Props](https://reactnative.dev/docs/view#props).
@@ -308,12 +304,10 @@ Inherits [View Props](https://reactnative.dev/docs/view#props).
| width | the width of the image | number | No | android | yes |
| height | the height of the image | number | No | android | yes |
-## 遗留问题
-
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-toolbar-android/toolbar-android/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/react-native-toolbar-android/toolbar-android/blob/master/LICENSE).
--
Gitee
From 766eac4af5f40bf484e2b31c25fd514003f9243b Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 15:19:57 +0800
Subject: [PATCH 27/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91ant-design-reac?=
=?UTF-8?q?t-native=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/ant-design-react-native.md | 210 +++++++++++++++++-----------------
1 file changed, 104 insertions(+), 106 deletions(-)
diff --git a/en/ant-design-react-native.md b/en/ant-design-react-native.md
index 047ba9f50..50a6a56ab 100644
--- a/en/ant-design-react-native.md
+++ b/en/ant-design-react-native.md
@@ -1,6 +1,4 @@
-
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@ant-design/react-native
@@ -14,11 +12,11 @@
-> [!TIP] [Github 地址](https://github.com/ant-design/ant-design-mobile-rn)
+> [!TIP] [GitHub address](https://github.com/ant-design/ant-design-mobile-rn)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -34,39 +32,35 @@ npm install @ant-design/react-native@5.2.2
yarn add @ant-design/react-native@5.2.2
```
-> [!TIP] 本库还依赖了[@react-native-oh-tpl/slider](/zh-cn/react-native-community-slider.md)、[@react-native-oh-tpl/react-native-gesture-handler](/zh-cn/react-native-gesture-handler.md)、[@react-native-oh-tpl/react-native-modal-popover](/zh-cn/react-native-modal-popover.md)、[@react-native-oh-tpl/react-native-reanimated](/zh-cn/react-native-reanimated.md)和[react-native-community/segmented-control](/zh-cn/react-native-community-segmented-control.md)
-
-> **Warning:**
-> @bang88/react-native-ultimate-listview 这个依赖库还没鸿蒙化,会影响到里面的一个 ListView 组件,如果想暂时解决掉这个报错的话,可以在 node_modules\@bang88\react-native-ultimate-listview\src 目录下添加一个 refreshableScrollView.js 文件。
+> [!WARNING] @bang88/react-native-ultimate-listview 这个依赖库还没鸿蒙化,会影响到里面的一个 ListView 组件,如果想暂时解决掉这个报错的话,可以在 node_modules\@bang88\react-native-ultimate-listview\src 目录下添加一个 refreshableScrollView.js 文件。
## 链接字体图标
+Open `react-native.config.js` and add the following code:
+
```bash
-// 配置根目录下的 `react-native.config.js` 文件
module.exports = {
assets: ['node_modules/@ant-design/icons-react-native/fonts'],
};
```
-然后
+Then, run the following instruction on the terminal:
```bash
-# 手动执行命令
npm install react-native-asset && npx react-native-asset
```
### 在 ArkTs 侧引入和注册字体文件
-> [!WARNING] 使用时 import 的库名不变。
+Step 1:
-步骤一:
复制字体文件到 `\entry\src\main\resources\rawfile\fonts` 目录下(没有 fonts 文件夹就新建一个,如使用了外部字体文件,需要将\*.ttf 文件复制过来)
-步骤二:
-打开 `entry/src/main/ets/pages/Index.ets`,添加以下代码
+Step 2:
-```diff
+Open `entry/src/main/ets/pages/Index.ets` and add the following code:
+```diff
@Entry
@Component
struct Index {
@@ -94,7 +88,9 @@ npm install react-native-asset && npx react-native-asset
> [!TIP] Demo 中字体属于 IconFont 文件;自定义字体也需要用统一的方法在此注册。
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
+
+> [!WARNING] The name of the imported repository remains unchanged.
```jsx
import React from "react";
@@ -188,45 +184,45 @@ export default class BasicTagExample extends React.Component {
## Link
-> [!TIP] @react-native-oh-tpl/react-native-gesture-handler 安装 v2.14.7 版本配套使用
+> [!TIP] @react-native-oh-tpl/react-native-gesture-handler Version: v2.14.7
-> [!TIP] @react-native-oh-tpl/slider 安装 v4.4.3-0.3.2 版本配套使用
+> [!TIP] @react-native-oh-tpl/slider Version: v4.4.3-0.3.2
-> [!TIP] @react-native-oh-tpl/react-native-modal-popover 安装 v2.1.3-0.0.1 版本配套使用
+> [!TIP] @react-native-oh-tpl/react-native-modal-popover Version: v2.1.3-0.0.1
-> [!TIP] @react-native-oh-tpl/react-native-reanimated 安装 v3.6.2 版本配套使用
+> [!TIP] @react-native-oh-tpl/react-native-reanimated Version: v3.6.2
-本库 HarmonyOS 侧实现依赖 @react-native-oh-tpl/slider、@react-native-oh-tpl/react-native-gesture-handler 、@react-native-oh-tpl/react-native-reanimated 和@react-native-oh-tpl/react-native-modal-popover 的原生端代码,如已在 HarmonyOS 工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/slider @react-native-oh-tpl/react-native-gesture-handler @react-native-oh-tpl/react-native-reanimated and @react-native-oh-tpl/react-native-modal-popover. 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 guides to add it to your project:
-- [@react-native-oh-tpl/slider 引入方法](/zh-cn/react-native-community-slider.md)
+- [@react-native-oh-tpl/slider](/en/react-native-community-slider.md)
-- [@react-native-oh-tpl/react-native-gesture-handler 引入方法](/zh-cn/react-native-gesture-handler.md)
+- [@react-native-oh-tpl/react-native-gesture-handler](/en/react-native-gesture-handler.md)
-- [@react-native-oh-tpl/react-native-modal-popover 引入方法](/zh-cn/react-native-modal-popover.md)
+- [@react-native-oh-tpl/react-native-modal-popover](/en/react-native-modal-popover.md)
-- [@react-native-oh-tpl/react-native-reanimated](/zh-cn/react-native-reanimated.md)
+- [@react-native-oh-tpl/react-native-reanimated](/en/react-native-reanimated.md)
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+This document is verified based on the following versions:
-1. RNOH: 0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.25; IDE:DevEco Studio 5.0.3.400SP7; ROM:3.0.0.25;
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.25; IDE: DevEco Studio 5.0.3.400SP7; ROM: 3.0.0.25;
-## 组件
+## Component
-详细请查看 [ant-design-mobile-rn 的文档介绍](http://rn.mobile.ant.design/docs/react/introduce-cn)
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-以下为目前已支持的组件属性:
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+For details, see [ant-design-mobile-rn](http://rn.mobile.ant.design/docs/react/introduce-cn)
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+以下为目前已支持的组件属性:
-**Accordion**:手风琴组件,可以折叠/展开的内容区域。
+**Accordion**: 手风琴组件,可以折叠/展开的内容区域。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------------: | :------------------------------------: | :-----------------------: | :------: | :------: | :---------------: |
@@ -235,14 +231,14 @@ export default class BasicTagExample extends React.Component {
更多自定义属性请参考 https://github.com/oblador/react-native-collapsible#properties-1
-**Accordion.Panel**:Accordion 子组件。
+**Accordion.Panel**: Accordion 子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----: | :------------: | :---------------------: | :------: | :------: | :---------------: |
| key | 对应 activeKey | String | No | All | Yes |
| header | 面板头内容 | React.Element or String | Yes | All | Yes |
-**ActionSheet**:动作面板组件,从底部弹出的模态框,提供和当前场景相关的 2 个以上的操作动作,也支持提供标题和描述。
+**ActionSheet**: 动作面板组件,从底部弹出的模态框,提供和当前场景相关的 2 个以上的操作动作,也支持提供标题和描述。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------------: | :------------------------------------------: | :---------------------: | :------: | :------: | :---------------: |
@@ -252,13 +248,13 @@ export default class BasicTagExample extends React.Component {
| title | 顶部标题 | String | No | All | Yes |
| message | 顶部标题下的简要消息 | String 或 React.element | No | All | Yes |
-**Card**:卡片组件,用于组织信息和操作,通常也作为详细信息的入口。
+**Card**: 卡片组件,用于组织信息和操作,通常也作为详细信息的入口。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--: | :---------: | :-----: | :------: | :------: | :---------------: |
| full | 是否通栏 | boolean | No | All | Yes |
-**Card.Header**:卡片子组件。
+**Card.Header**: 卡片子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------: | :--------------: | :-------------------: | :------: | :------: | :---------------: |
@@ -267,14 +263,14 @@ export default class BasicTagExample extends React.Component {
| thumbStyle | 标题图片样式 | Object | No | All | Yes |
| extra | 卡片标题辅助内容 | React.Element、String | No | All | Yes |
-**Card.Footer**:卡片子组件。
+**Card.Footer**: 卡片子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----: | :----------: | :-------------------: | :------: | :------: | :---------------: |
| content | 尾部内容 | React.Element、String | No | All | Yes |
| extra | 尾部辅助内容 | React.Element、String | No | All | Yes |
-**Icon**:图标组件。
+**Icon**: 图标组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---: | :-----------------: | :--------------------------------: | :------: | :------: | :---------------: |
@@ -282,7 +278,7 @@ export default class BasicTagExample extends React.Component {
| size | 图标大小 | 'xxs'/'xs'/'sm'/'md'/'lg' / number | No | All | Yes |
| color | 图标颜色 | Color | No | All | Yes |
-**List**:列表组件,单个连续模块垂直排列,显示当前的内容、状态和可进行的操作。eg:联系人列表。
+**List**: 列表组件,单个连续模块垂直排列,显示当前的内容、状态和可进行的操作。eg:联系人列表。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :--------------: | :----------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -290,7 +286,7 @@ export default class BasicTagExample extends React.Component {
| renderFooter | list footer | (): void | No | All | Yes |
| styles | 语义化结构 style | [ListStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/list/index.zh-CN.md#liststyle-语义化样式) | No | All | Yes |
-**List.Item**:列表子组件。
+**List.Item**: 列表子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :-----------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -303,11 +299,11 @@ export default class BasicTagExample extends React.Component {
| wrap | 是否换行,默认情况下,文字超长会被隐藏, | Boolean | No | All | Yes |
| styles | 语义化结构 style | [ListItemStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.0-rc.0/components/list/index.zh-CN.md#listitemstyle-%E8%AF%AD%E4%B9%89%E5%8C%96%E6%A0%B7%E5%BC%8F) | No | All | Yes |
-**List.Item.Brief**:列表辅助说明组件。
+**List.Item.Brief**: 列表辅助说明组件。
-**ListView**:列表 Experimental 组件,当你需要一个 infinite scroll 列表时,请使用 ListView。[更多文档](https://github.com/gameboyVito/react-native-ultimate-listview)
+**ListView**: 列表 Experimental 组件,当你需要一个 infinite scroll 列表时,请使用 ListView。[更多文档](https://github.com/gameboyVito/react-native-ultimate-listview)
-**Modal**:对话框组件,用作显示系统的重要信息,并请求用户进行操作反馈,eg:删除某个重要内容时,弹出 Modal 进行二次确认。
+**Modal**: 对话框组件,用作显示系统的重要信息,并请求用户进行操作反馈,eg:删除某个重要内容时,弹出 Modal 进行二次确认。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------: | :------: | :------: | :---------------: |
@@ -322,7 +318,7 @@ export default class BasicTagExample extends React.Component {
| footer | 底部内容 | Array [{text, onPress}] | No | All | Yes |
| onRequestClose | onRequestClose 回调会在用户按下 Android 设备上的后退按键或是 Apple TV 上的菜单键时触发。返回 true 时会在 modal 处于开启状态时阻止 BackHandler 事件。 | (): boolean | No | All | No |
-**Modal.alert(title, message, actions?, platform?)**:对话框组件。
+**Modal.alert(title, message, actions?, platform?)**: 对话框组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :-----------------------------------------------------------------: | :---------------------: | :------: | :------: | :---------------: |
@@ -331,7 +327,7 @@ export default class BasicTagExample extends React.Component {
| actions | 按钮组, [{text, onPress, style}] | Array | No | All | Yes |
| onBackHandler | 返回键的回调(非必须),返回 true 则关闭 modal,false 阻止 modal 关闭 | (): boolean | No | All | Yes |
-**Modal.prompt(title, message, callbackOrActions, type?, defaultValue?, placeholders?, platform?)**:对话框组件。
+**Modal.prompt(title, message, callbackOrActions, type?, defaultValue?, placeholders?, platform?)**: 对话框组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------------: | :-----------------------------------------------------------------: | :-------------------------------------------: | :------: | :------: | :---------------: |
@@ -343,16 +339,16 @@ export default class BasicTagExample extends React.Component {
| placeholders | ['', ''] | String[] | No | All | Yes |
| onBackHandler | 返回键的回调(非必须),返回 true 则关闭 modal,false 阻止 modal 关闭 | (): boolean | No | All | No |
-**Modal.operation(actions?, onBackHandler?)**:对话框组件。
+**Modal.operation(actions?, onBackHandler?)**: 对话框组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :-----------------------------------------------------------------: | :---------: | :------: | :------: | :---------------: |
| actions | 按钮组, [{text, onPress, style}] | Array | No | All | Yes |
| onBackHandler | 返回键的回调(非必须),返回 true 则关闭 modal,false 阻止 modal 关闭 | (): boolean | No | All | Yes |
-**Portal**:Portal 组件,注意:源码复制自 react-native-paper 更多信息请移步https://callstack.github.io/react-native-paper/portal.html。
+**Portal**: Portal 组件,注意:源码复制自 react-native-paper 更多信息请移步https://callstack.github.io/react-native-paper/portal.html。
-**Result**:结果页组件,在整张页面中组织插画、图标、文字等内容,向用户反馈操作结果。
+**Result**: 结果页组件,在整张页面中组织插画、图标、文字等内容,向用户反馈操作结果。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :---------------------------: | :-----------------------: | :------: | :------: | :---------------: |
@@ -364,7 +360,7 @@ export default class BasicTagExample extends React.Component {
| buttonType | 请参考 button 的配置 | string | No | All | Yes |
| onButtonClick | 按钮回调函数 | (e: Object): void | No | All | Yes |
-**Toast**:轻提示组件,一种轻量级反馈/提示,可以用来显示不会打断用户操作的内容,适合用于页面转场、数据交互的等场景中。
+**Toast**: 轻提示组件,一种轻量级反馈/提示,可以用来显示不会打断用户操作的内容,适合用于页面转场、数据交互的等场景中。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------: | :----------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -388,7 +384,7 @@ export default class BasicTagExample extends React.Component {
**Toast.removeAll**: 关闭所有显示中的 `Toast`。
-**ActivityIndicator**:活动指示器组件,表明某个任务正在进行中。
+**ActivityIndicator**: 活动指示器组件,表明某个任务正在进行中。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------: | :----------------------------: | :-----: | :------: | :------: | :---------------: |
@@ -398,7 +394,7 @@ export default class BasicTagExample extends React.Component {
| text | loading 文本 | string | No | All | Yes |
| color | spinner 颜色 | string | No | All | Yes |
-**Badge**:徽标数组件,图标右上角的红点、数字或者文字。用于告知用户,该区域的状态变化或者待处理任务的数量。
+**Badge**: 徽标数组件,图标右上角的红点、数字或者文字。用于告知用户,该区域的状态变化或者待处理任务的数量。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :------------------------: | :--------------: | :------: | :------: | :---------------: |
@@ -408,7 +404,7 @@ export default class BasicTagExample extends React.Component {
| dot | 不展示数字,只有一个小红点 | boolean | No | All | Yes |
| overflowCount | 展示封顶的数字值 | number | No | All | Yes |
-**Button**:按钮组件,点击后会触发一个操作。
+**Button**: 按钮组件,点击后会触发一个操作。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------------: | :--------------------------------------------------: | :---------------: | :------: | :------: | :---------------: |
@@ -424,7 +420,7 @@ export default class BasicTagExample extends React.Component {
| onShowUnderlay | 同 RN TouchableHighlight onShowUnderlay | (e: Object): void | No | All | Yes |
| onHideUnderlay | 同 RN TouchableHighlight onHideUnderlay | (e: Object): void | No | All | Yes |
-**Carousel**:走马灯组件。
+**Carousel**: 走马灯组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------: | :--------------------: | :------------------------: | :------: | :------: | :---------------: |
@@ -446,7 +442,7 @@ export default class BasicTagExample extends React.Component {
| :--: | :------------: | :---------------------------------------: | :------: | :------: | :---------------: |
| goTo | 跳转到指定位置 | (index: number, animated?: boolean): void | No | All | Yes |
-**Checkbox**:复选框组件。
+**Checkbox**: 复选框组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :-------------------------------------: | :----------------: | :------: | :------: | :---------------: |
@@ -456,11 +452,11 @@ export default class BasicTagExample extends React.Component {
| indeterminate | 设置 indeterminate 状态,只负责样式控制 | Boolean | No | All | Yes |
| onChange | change 事件触发的回调函数 | (e: Event) => void | No | All | Yes |
-**Checkbox.CheckboxItem**:基于 List.Item 对 Checkbox 进行封装,List.Item 的 thumb 属性固定传入 Checkbox,其他属性和 List.Item 一致。 其他 API 和 Checkbox 相同。
+**Checkbox.CheckboxItem**: 基于 List.Item 对 Checkbox 进行封装,List.Item 的 thumb 属性固定传入 Checkbox,其他属性和 List.Item 一致。 其他 API 和 Checkbox 相同。
-**Checkbox.AgreeItem**:用于同意协议这种场景的复选框。
+**Checkbox.AgreeItem**: 用于同意协议这种场景的复选框。
-**DatePicker**:日期选择组件,用于选择日期或者时间。
+**DatePicker**: 日期选择组件,用于选择日期或者时间。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :----------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -475,7 +471,7 @@ export default class BasicTagExample extends React.Component {
| locale | 国际化,可覆盖全局 LocaleProvider 的配置 | Object: {okText, dismissText, extra, DatePickerLocale:{ year,month,day,hour,minute,am,pm }} | No | All | Yes |
| filter | 过滤可供选择的时间 | DatePickerFilter | No | All | Yes |
-**DatePickerView**:日期选择器组件,atePickerView 的功能类似于 DatePicker ,但它是直接渲染在区域中,而不是弹出窗口。
+**DatePickerView**: 日期选择器组件,atePickerView 的功能类似于 DatePicker ,但它是直接渲染在区域中,而不是弹出窗口。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :----------------------------------------------------------------------------------------------: | :-------------------------------------------------: | :------: | :------: | :---------------: |
@@ -489,7 +485,7 @@ export default class BasicTagExample extends React.Component {
| renderLabel | 自定义渲染每列展示的内容。其中 type 参数为 precision 中的任意值或 now,data 参数为默认渲染的数字 | (type:Precision / 'now', data: number) => ReactNode | No | All | Yes |
| filter | 过滤可供选择的时间 | DatePickerFilter | No | All | Yes |
-**InputItem**:文本输入组件,用于接受单行文本。
+**InputItem**: 文本输入组件,用于接受单行文本。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------: | :------: | :------: | :---------------: |
@@ -513,7 +509,7 @@ export default class BasicTagExample extends React.Component {
| last | 如果是最后一项,则将移除 borderBottom(默认拥有 borderBottom) | bool | No | All | Yes |
| locale | 国际化, 当 type 为 money,可以自定义确认按钮的文案。 | bool | No | All | No |
-**Picker**:选择器组件,在一组预设数据中进行选择,e.g. 省市区选择。
+**Picker**: 选择器组件,在一组预设数据中进行选择,e.g. 省市区选择。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------------: | :------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -550,6 +546,7 @@ export default class BasicTagExample extends React.Component {
| numberOfLines | 允许每列显示行数 | Number | No | All | Yes |
**Picker 遮罩层**
+
还支持自定义遮罩样式,如使用渐变组件` `。当前默认为白色半透明。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -558,7 +555,8 @@ export default class BasicTagExample extends React.Component {
| renderMaskBottom | 自定义渲染下半部分遮罩层 | `()=> ReactNode` 或 ` ` | No | All | Yes |
**Picker 的 Children**
-通常是 [List.Item](/components/list-cn/#List.Item) ,以下属性也是围绕着`List.Item`展开:
+
+通常是 [List.Item](/components/list-cn/#List.Item) ,以下属性也是围绕着`List.Item`展开:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------: | :-------------------------------------------: | :---------------------: | :------: | :------: | :---------------: |
@@ -568,7 +566,7 @@ export default class BasicTagExample extends React.Component {
| disabled | 是否不可用 | Boolean | No | All | Yes |
| format | 格式化选中值的函数,用于回显在 extra 属性上 | (labels: string[]): any | No | All | Yes |
-**PickerView**:PickerView 的功能类似于 Picker ,但它是直接渲染在区域中,而不是弹出窗口。
+**PickerView**: PickerView 的功能类似于 Picker ,但它是直接渲染在区域中,而不是弹出窗口。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :--------------------------------------------------------------------: | :------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -602,7 +600,7 @@ export default class BasicTagExample extends React.Component {
| renderMaskTop | 自定义渲染上半部分遮罩层 | `()=> ReactNode` 或 ` ` | No | All | Yes |
| renderMaskBottom | 自定义渲染下半部分遮罩层 | `()=> ReactNode` 或 ` ` | No | All | Yes |
-**Progress**:进度条组件,表明某个任务的当前进度。
+**Progress**: 进度条组件,表明某个任务的当前进度。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------: | :--------------------------------------------------------: | :-----: | :------: | :------: | :---------------: |
@@ -612,7 +610,7 @@ export default class BasicTagExample extends React.Component {
| style | 进度条样式 | object | No | All | Yes |
| barStyle | 进度样式 | object | No | All | Yes |
-**Pagination**:分页器组件。
+**Pagination**: 分页器组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------: | :----------------------------------------: | :--------------------------: | :------: | :------: | :---------------: |
@@ -624,7 +622,7 @@ export default class BasicTagExample extends React.Component {
| locale | 国际化, 可以覆盖全局 LocaleProvider 的配置 | Object:{prevText, nextText} | No | All | Yes |
| onChange | change 事件触发的回调函数 | (e: Object): void | No | All | Yes |
-**Radio**:单选框组件。
+**Radio**: 单选框组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :---------------------------: | :-------------------------------------------: | :------: | :------: | :---------------: |
@@ -635,9 +633,10 @@ export default class BasicTagExample extends React.Component {
| value | 携带的标识值,用于 Group 模式 | RadioValue | No | All | Yes |
**Radio.RadioItem**
+
基于 List.Item 对 Radio 进行封装,List.Item 的 extra 属性固定传入 Radio,其他属性和 List.Item 一致。 其他 API 和 Radio 相同。
-**Radio.Group**:单选框子组件。
+**Radio.Group**: 单选框子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :-----------------------: | :-------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -647,7 +646,7 @@ export default class BasicTagExample extends React.Component {
| onChange | change 事件触发的回调函数 | (e: { target: { checked: boolean } }) => void | No | All | Yes |
| value | 用于设置当前选中的值 | RadioValue | No | All | Yes |
-**Stepper**:步进器,用作增加或者减少当前数值。
+**Stepper**: 步进器,用作增加或者减少当前数值。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------: | :-------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -669,7 +668,7 @@ export default class BasicTagExample extends React.Component {
| stringMode | 字符值模式,开启后支持高精度小数。开启后 `defaultValue`、`value`、`min`、`max`、`onChange` 等都将转换为 `string` 类型 | `boolean` | No | All | Yes |
| inputStyle | react native 显示数字样式 | ReactNative StyleSheet | No | All | Yes |
-**Steps**:步骤条组件,显示一个任务的进度;或者引导用户完成某个复杂任务。
+**Steps**: 步骤条组件,显示一个任务的进度;或者引导用户完成某个复杂任务。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------: | :-------------------------------------------------------------------------: | :-------------------------------: | :------: | :------: | :---------------: |
@@ -678,7 +677,7 @@ export default class BasicTagExample extends React.Component {
| status | 指定当前步骤的状态,可选 wait process finish error | string | No | All | Yes |
| direction | step 样式( RN 目前只支持 vertical ) | Enum { 'vertical', 'horizontal' } | No | All | Yes |
-**Steps.Step**:步骤条组件,步骤条内的每一个步骤。
+**Steps.Step**: 步骤条组件,步骤条内的每一个步骤。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------: | :------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -688,7 +687,7 @@ export default class BasicTagExample extends React.Component {
| icon | 步骤图标,可选 | object/React.Element | No | All | Yes |
| renderIcon | 自定义步骤图标,可选 | (params: { starting: boolean; waiting: boolean; error: boolean; }) => React.ReactNode | No | All | Yes |
-**Switch**:滑动开关组件,在两个互斥对象进行选择,eg:选择开或关。
+**Switch**: 滑动开关组件,在两个互斥对象进行选择,eg:选择开或关。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------------: | :-----------------------------------------------------: | :-------------------------------------: | :------: | :------: | :---------------: |
@@ -701,7 +700,7 @@ export default class BasicTagExample extends React.Component {
| checkedChildren | 选中时的内容 | ReactNode | No | All | Yes |
| unCheckedChildren | 非选中时的内容 | ReactNode | No | All | Yes |
-**Tabs**:标签页组件,用于让用户在不同的视图中进行切换。
+**Tabs**: 标签页组件,用于让用户在不同的视图中进行切换。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------------------: | :------------------------: | :----------------------------------------------------: | :------: | :------: | :---------------: |
@@ -739,7 +738,7 @@ export default class BasicTagExample extends React.Component {
| page | Tab 分页尺寸 | number | No | All | Yes |
| onTabClick | tab 被点击的回调 | (tab: Models.TabData, index: number) => void | No | All | Yes |
-**Tag**:标签组件,进行标记和分类的小标签,用于标记事物的属性和维度,以及进行分类。
+**Tag**: 标签组件,进行标记和分类的小标签,用于标记事物的属性和维度,以及进行分类。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------: | :--------------------------------: | :--------------------: | :------: | :------: | :---------------: |
@@ -752,7 +751,7 @@ export default class BasicTagExample extends React.Component {
| afterClose | 关闭后的回调 | (): void | No | All | Yes |
| onLongPress | 长按的回调 | (): void | No | All | Yes |
-**TextareaItem**:多行输入组件。
+**TextareaItem**: 多行输入组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :--------------------------------------------------------------------------------------------------------------------------------: | :-----------------: | :------: | :------: | :---------------: |
@@ -771,7 +770,7 @@ export default class BasicTagExample extends React.Component {
| labelNumber | 定宽枚举值:num \* @input-label-width: 34px,可用 2-7 之间的数字,一般(不能保证全部)能对应显示出相应个数的中文文字(不考虑英文字符) | number | No | All | Yes |
| last | 如果是最后一项,则将移除 borderBottom(默认拥有 borderBottom) | bool | No | All | Yes |
-**Flex**:布局组件,Flex 是 CSS flex 布局的一个封装。
+**Flex**: 布局组件,Flex 是 CSS flex 布局的一个封装。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------: | :---------------------------------------------------------------------: | :----: | :------: | :------: | :---------------: |
@@ -780,7 +779,7 @@ export default class BasicTagExample extends React.Component {
| justify | 子元素在主轴上的对齐方式,可选`start`,`end`,`center`,`between`,`around` | String | No | All | Yes |
| align | 子元素在交叉轴上的对齐方式,可选`start`,`end`,`center`,`stretch` | String | No | All | Yes |
-**Grid**:宫格组件,在水平和垂直方向,将布局切分成若干等大的区块。
+**Grid**: 宫格组件,在水平和垂直方向,将布局切分成若干等大的区块。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :------------------------------------: | :-------------------------------: | :------: | :------: | :---------------: |
@@ -796,33 +795,33 @@ export default class BasicTagExample extends React.Component {
`isCarousel = true` 模式时,还可以传递 [carousel](https://mobile.ant.design/components/carousel) 相关的 API。
-**国际化和皮肤配置**:为组件内建文案提供统一的国际化支持。
+**国际化和皮肤配置**: 为组件内建文案提供统一的国际化支持。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----: | :------: | :------: | :---------------: |
| locale | 语言包配置,语言包可到 `@ant-design/react-native/lib/locale-provider/`目录下寻找 | object | No | All | Yes |
| theme | 主题样式配置,可根据需要覆盖部分或者全部变量,具体变量请查看 [theme](https://github.com/ant-design/ant-design-mobile-rn/blob/master/components/style/themes/default.tsx) | object | No | All | Yes |
-**View**:基础组件,更安全的 View 基础组件。
+**View**: 基础组件,更安全的 View 基础组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------: | :---------: | :------------------------------------------: | :------: | :------: | :---------------: |
| children | 子组件 | React.ReactNode 或 React.ReactText | No | All | Yes |
| style | 样式 | StyleProp 或 StyleProp | No | All | Yes |
-**WhiteSpace**:上下留白组件。
+**WhiteSpace**: 上下留白组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--: | :---------------------------------: | :----: | :------: | :------: | :---------------: |
| size | 上下留白的间距,可选 xs,sm,md,lg,xl | string | No | All | Yes |
-**WingBlank**:两翼留白组件。
+**WingBlank**: 两翼留白组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--: | :--------------------------------: | :----: | :------: | :------: | :---------------: |
| size | 两翼留白的间距,可选`sm`,`md`,`lg` | string | No | All | Yes |
-**NoticeBar**:通告栏组件,在导航栏下方,一般用作系统提醒、活动提醒等通知。
+**NoticeBar**: 通告栏组件,在导航栏下方,一般用作系统提醒、活动提醒等通知。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :---------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -853,7 +852,7 @@ export default class BasicTagExample extends React.Component {
| trailing | 上一次循环后到下一次动画的延迟时间(以毫秒为单位) | `Number` | No | All | Yes |
| wrapStyle | Marquee 组件外部 style | `ViewStyle` | No | All | Yes |
-**SearchBar**:搜索栏组件,一般可位于 NavBar 下方,通过『取消按钮』退出激活状态。
+**SearchBar**: 搜索栏组件,一般可位于 NavBar 下方,通过『取消按钮』退出激活状态。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------: | :-------------------------------------------: | :-----------------: | :------: | :------: | :---------------: |
@@ -869,7 +868,7 @@ export default class BasicTagExample extends React.Component {
| cancelText | 定制`取消`按钮的文字 | String | No | All | Yes |
| disabled | 设置禁用 | bool | No | All | Yes |
-**TabBar**:标签栏组件,位于 APP 底部,方便用户在不同功能模块之间进行快速切换。
+**TabBar**: 标签栏组件,位于 APP 底部,方便用户在不同功能模块之间进行快速切换。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------------: | :--------------: | :----: | :------: | :------: | :---------------: |
@@ -877,7 +876,8 @@ export default class BasicTagExample extends React.Component {
| tintColor | 选中的字体颜色 | String | No | All | Yes |
| unselectedTintColor | 未选中的字体颜色 | String | No | All | Yes |
-**TabBar.Item**:TabBar 子组件。
+**TabBar.Item**: TabBar 子组件。
+
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :---------------------------------------------------: | :-------------: | :--------------: | :------: | :---------------: |
| badge | 徽标数 | Number \ String | No | All | Yes |
@@ -889,7 +889,7 @@ export default class BasicTagExample extends React.Component {
| key | 唯一标识 | String | No | All | Yes |
| iconStyle | icon 样式 | String | No | All | Yes |
-**Slider**:滑动输入条组件,允许用户在一个区间中选择特定值,eg:控制屏幕的显示亮度。
+**Slider**: 滑动输入条组件,允许用户在一个区间中选择特定值,eg:控制屏幕的显示亮度。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------: | :----------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -908,7 +908,7 @@ export default class BasicTagExample extends React.Component {
| onChange | 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入 | Function | No | All | Yes |
| onAfterChange | 与 `ontouchend` 触发时机一致,把当前值作为参数传入 | Function | No | All | Yes |
-**Popover**:气泡组件,在点击控件或者某个区域后,浮出一个气泡菜单来做更多的操作。 如果设置了遮罩层,建议通过点击遮罩层的任一位置,进行退出。
+**Popover**: 气泡组件,在点击控件或者某个区域后,浮出一个气泡菜单来做更多的操作。 如果设置了遮罩层,建议通过点击遮罩层的任一位置,进行退出。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------------: | :-------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -922,7 +922,7 @@ export default class BasicTagExample extends React.Component {
| useNativeDriver | 动画是否使用 Native Driver | boolean | No | All | Yes |
| onDismiss | Popover 关闭后的回调函数 | function | No | All | No |
-**Popover.Item**:气泡子组件。
+**Popover.Item**: 气泡子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------: | :-----------------: | :-------: | :------: | :------: | :---------------: |
@@ -930,7 +930,7 @@ export default class BasicTagExample extends React.Component {
| style | item 样式 | ViewStyle | No | All | Yes |
| value | 可作为选中的条目 ID | any | Yes | All | Yes |
-**SwipeAction**:滑动操作组件。
+**SwipeAction**: 滑动操作组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-----------------: | :--------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -942,7 +942,7 @@ export default class BasicTagExample extends React.Component {
| closeOnTouchOutside | 是否在点击其他区域时自动归位 | `boolean` | No | All | Yes |
| styles | 语义化结构 style | [SwipeActionStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/swipe-action-cn#swipeactionstyle-语义化样式) | No | All | Yes |
-**SwipeAction.Button**:滑动操作组件内的 Button。
+**SwipeAction.Button**: 滑动操作组件内的 Button。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :---------------: | :------------: | :------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -954,7 +954,7 @@ export default class BasicTagExample extends React.Component {
| onPress | 按钮点击事件 | (): void | No | All | Yes |
| actionButtonProps | 其他额外 props | [RectButtonProps](https://docs.swmansion.com/react-native-gesture-handler/docs/components/buttons/#rectbutton) | No | All | Yes |
-**Collapse**:折叠面板组件, 可以折叠/展开的内容区域。
+**Collapse**: 折叠面板组件, 可以折叠/展开的内容区域。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :--------------: | :-----------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -965,7 +965,7 @@ export default class BasicTagExample extends React.Component {
| onChange | 切换面板时触发 | 手风琴模式:`(activeKey: string)` | No | All | Yes |
| styles | 语义化结构 style | 同 [ListStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/list-cn#liststyle-语义化样式) & [ListItemStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/list-cn#listitemstyle-语义化样式) | No | All | Yes |
-**Collapse.Panel**:折叠面板子组件。
+**Collapse.Panel**: 折叠面板子组件。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------------: | :-------------------------: | :---------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -978,7 +978,7 @@ export default class BasicTagExample extends React.Component {
| styles | 语义化结构 style | 同 [ListItemStyle](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/list-cn#listitemstyle-语义化样式) | No | All | Yes |
| title | 标题栏左侧内容 | `ReactNode` | No | All | Yes |
-**Input**:文本输入组件,通过键盘输入内容,是最基础的表单域包装。
+**Input**: 文本输入组件,通过键盘输入内容,是最基础的表单域包装。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :----------: | :-----------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -999,7 +999,7 @@ export default class BasicTagExample extends React.Component {
**Input.TextArea**
-同 `Input` 属性,外加:
+同 `Input` 属性,外加:
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :------: | :-------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -1104,7 +1104,7 @@ export default class BasicTagExample extends React.Component {
| submit | 提交表单,与点击 `submit` 按钮效果相同 | () => void | No | All | Yes |
| validateFields | 触发表单验证,设置 `recursive` 时会递归校验所有包含的路径 | (nameList?: [NamePath](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/form/index.zh-CN.md#namepath)[], config?: [ValidateConfig](https://github.com/ant-design/ant-design-mobile-rn/blob/5.2.2/components/form/index.zh-CN.md#validateFields)) => Promise | No | All | Yes |
-**Tooltip**:气泡组件,在点击控件或者某个区域后,浮出一个气泡菜单来做更多的操作。
+**Tooltip**: 气泡组件,在点击控件或者某个区域后,浮出一个气泡菜单来做更多的操作。
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| :-------------: | :--------------------------: | :-----------------------------------------------------------------------------------------------------: | :------: | :------: | :---------------: |
@@ -1136,20 +1136,18 @@ export default class BasicTagExample extends React.Component {
| onPress | 点击时触发 | `() => void` | No | All | Yes |
| text | 菜单列表,当弹出内容为标准菜单时使用 | `ReactNode` | No | All | Yes |
-## 遗留问题
+## Known Issues
- [ ] PickerView 组件在 harmony 暂不支持,待ArkUI规格升级之后再重新适配
- [ ] Input.TextArea 组件在 harmony 暂不支持,待ArkUI规格升级之后再重新适配
-## 其他
+## Others
- Drawer 组件暂时无法支持,与 Android/IOS 一致[issue#1352](https://github.com/ant-design/ant-design-mobile-rn/issues/1352)、[issue#1338](https://github.com/ant-design/ant-design-mobile-rn/issues/1338)。
- Tooltip 组件气泡位置异常展示,与 Android/IOS 一致[issue#1376](https://github.com/ant-design/ant-design-mobile-rn/issues/1376)。
- Radio 组件的 defaultCheck 属性无法正常生效,与 Android/IOS 一致[issue#1380](https://github.com/ant-design/ant-design-mobile-rn/issues/1380)。
- Picker 组件的 defaultValue 属性无法正常生效,与 Android/IOS 一致[issue#1381](https://github.com/ant-design/ant-design-mobile-rn/issues/1381)。
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/ant-design/ant-design-mobile-rn/blob/master/LICENSE),请自由地享受和参与开源。
+## License
-
+This project is licensed under [The MIT License (MIT)](https://github.com/ant-design/ant-design-mobile-rn/blob/master/LICENSE).
--
Gitee
From 0eac3ac01d13eeb1dde0d0823478effd5df5ae56 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 15:28:31 +0800
Subject: [PATCH 28/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-dr?=
=?UTF-8?q?ax=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-drax.md | 46 +++++++++++++++++++----------------------
1 file changed, 21 insertions(+), 25 deletions(-)
diff --git a/en/react-native-drax.md b/en/react-native-drax.md
index 96818cd73..84c605b40 100644
--- a/en/react-native-drax.md
+++ b/en/react-native-drax.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-drax
@@ -12,19 +12,15 @@
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-drax)
+## Installation and Usage
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-drax Releases](https://github.com/react-native-oh-library/react-native-drax/releases).
+Go to the project directory and execute the following instruction:
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-drax)
-
-## 安装与使用
-
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-drax Releases](https://github.com/react-native-oh-library/react-native-drax/releases),并下载适用版本的 tgz 包。
-
-进入到工程目录并输入以下命令:
-
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
@@ -42,9 +38,9 @@ yarn add @react-native-oh-tpl/react-native-drax@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState } from 'react';
@@ -121,23 +117,23 @@ const styles = StyleSheet.create({
## Link
-本库鸿蒙侧实现依赖@react-native-oh-tpl/react-native-gesture-handler 的原生端代码,如已在鸿蒙工程中引入过这个库,则无需再次引入,可跳过本章节步骤,直接使用。
+The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-gesture-handler. 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.
-如未引入请参照[@react-native-oh-tpl/react-native-gesture-handler 文档](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-gesture-handler.md) 进行引入
+If it is not included, follow the guide provided in [@react-native-oh-tpl/react-native-gesture-handler](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-gesture-handler.md) to add it to your project.
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-drax Releases](https://github.com/react-native-oh-library/react-native-drax/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-drax Releases](https://github.com/react-native-oh-library/react-native-drax/releases)
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 Yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### DraxView
@@ -217,12 +213,12 @@ const styles = StyleSheet.create({
| itemsDraggable | Indicates whether items in the FlatList component can be dragged | boolean | no | iOS/Android | Yes |
| lockItemDragsToMainAxis | Indicates whether to lock the drag direction of items in the FlatList component to the main axis direction | boolean | no | iOS/Android | Yes |
-## 遗留问题
+## Known Issues
- [ ] DraxList和DraxScrollView组件存在拖拽不流畅的情况,[issue#1](https://github.com/react-native-oh-library/react-native-drax/issues/1)
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License(MIT)](https://github.com/nuclearpasta/react-native-drax/blob/main/LICENSE.md),请自由地享受和参与开源。
+This project is licensed under [The MIT License(MIT)](https://github.com/nuclearpasta/react-native-drax/blob/main/LICENSE.md).
--
Gitee
From df2189b3607b07e451236d00fabd7c31f52a07f4 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 15:32:26 +0800
Subject: [PATCH 29/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91openspacelabs-r?=
=?UTF-8?q?eact-native-zoomable-view=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...penspacelabs-react-native-zoomable-view.md | 38 +++++++++----------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/en/openspacelabs-react-native-zoomable-view.md b/en/openspacelabs-react-native-zoomable-view.md
index aaf821d8c..fdac4892d 100644
--- a/en/openspacelabs-react-native-zoomable-view.md
+++ b/en/openspacelabs-react-native-zoomable-view.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@openspacelabs/react-native-zoomable-view
@@ -14,11 +13,11 @@
-> [!TIP] [Github 地址](https://github.com/openspacelabs/react-native-zoomable-view)
+> [!TIP] [GitHub address](https://github.com/openspacelabs/react-native-zoomable-view)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -36,9 +35,9 @@ yarn add @openspacelabs/react-native-zoomable-view@2.1.6
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import { View, StyleSheet, Image, Animated } from "react-native";
@@ -121,20 +120,20 @@ const styles = StyleSheet.create({
});
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-本文档内容基于以下版本验证通过:
+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.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+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.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-## 属性
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | Type | Description | Required | Platform | HarmonyOS Support |
| -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | -------- | ----------------- |
@@ -180,11 +179,10 @@ const styles = StyleSheet.create({
| moveTo | function | Shifts the zoomed part to a specific point (in px relative to x: 0, y: 0) | no | All | yes |
| moveBy | function | Shifts the zoomed part by a specific pixel number | no | All | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/openspacelabs/react-native-zoomable-view/blob/master/LICENSE) ,请自由地享受和参与开源。
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/openspacelabs/react-native-zoomable-view/blob/master/LICENSE).
--
Gitee
From 202e9f1d3aa1212d41ecc48ee14e51ada3d55007 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 15:38:22 +0800
Subject: [PATCH 30/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-mo?=
=?UTF-8?q?dals=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-modals.md | 43 +++++++++++++++------------------------
1 file changed, 16 insertions(+), 27 deletions(-)
diff --git a/en/react-native-modals.md b/en/react-native-modals.md
index 4a12725dd..0b27062d3 100644
--- a/en/react-native-modals.md
+++ b/en/react-native-modals.md
@@ -1,4 +1,4 @@
-模板版本:v0.2.2
+> Template version: v0.2.2
react-native-modals
@@ -13,11 +13,9 @@
+> [!TIP] [GitHub address](https://github.com/jacklam718/react-native-modals)
-> [!TIP] [Github 地址](https://github.com/jacklam718/react-native-modals)
-
-
-## 安装与使用
+## Installation and Usage
@@ -35,9 +33,9 @@ yarn add react-native-modals@0.22.3
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
// The Component can not be used until ModalPortal is mounted. You should register in your app root. For example (App.tsx):
@@ -56,12 +54,9 @@ const App = () => {
);
}
-
```
-
```js
-
// create modalsDemo.tsx in the same directory as the App.tsx file
import React, { useState } from 'react'
@@ -94,23 +89,21 @@ export default ModalsDemo = () => {
>
)
}
-
-
```
-## 约束与限制
-### 兼容性
+## Constraints
-本文档内容基于以下版本验证通过:
+### Compatibility
-RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.3.400SP7; ROM:3.0.0.25;
+This document is verified based on the following versions:
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.400SP7; ROM: 3.0.0.25;
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
### Modal/BottomModal
@@ -144,7 +137,6 @@ RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.
| swipeThreshold | Set the threshold of the swipe movement.default is 100 | Number | no | all | yes|
| footer | for example: {}}/> | React Element | no | all | yes|
-
### ModalTitle
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -162,7 +154,6 @@ RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.
| children | Set Container Subcomponent | any | no | all | yes|
| style | Setting a Custom Container Style | any | no | all | yes|
-
### ModalFooter
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -171,7 +162,6 @@ RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.
| bordered | Set the display and close of the container top dividing line.default is true. | Boolean | no | all | yes|
| style | Setting a Custom Container Style | any | no | all | yes|
-
### ModalButton
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -185,7 +175,6 @@ RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.
| disabled | Sets whether the button is available.default is false. | Boolean | no | all | yes|
| bordered | Sets whether there is a dividing line on the left of the button.default is false. | Boolean | no | all | yes|
-
### Backdrop
| Name | Description | Type | Required | Platform | HarmonyOS Support |
@@ -226,10 +215,10 @@ RNOH:0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE:DevEco Studio 5.0.
| useNativeDriver | Whether to enable the native animation driver. default is true. | Boolean | no | all | yes|
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/jacklam718/react-native-modals/blob/master/LICENSE.md) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://github.com/jacklam718/react-native-modals/blob/master/LICENSE.md).
--
Gitee
From 290a9498e1fecb838b8ae08953d9a90ee472d6c3 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 15:43:04 +0800
Subject: [PATCH 31/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-in?=
=?UTF-8?q?put-scroll-view=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-input-scroll-view.md | 41 +++++++++++++---------------
1 file changed, 19 insertions(+), 22 deletions(-)
diff --git a/en/react-native-input-scroll-view.md b/en/react-native-input-scroll-view.md
index d75f2767b..f1b98942f 100644
--- a/en/react-native-input-scroll-view.md
+++ b/en/react-native-input-scroll-view.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-input-scroll-view
@@ -13,16 +13,15 @@
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-input-scroll-view)
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-input-scroll-view)
+## Installation and Usage
-## 安装与使用
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-input-scroll-view Releases](https://github.com/react-native-oh-library/react-native-input-scroll-view/releases).
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-input-scroll-view Releases](https://github.com/react-native-oh-library/react-native-input-scroll-view/releases),并下载适用版本的 tgz 包。
+Go to the project directory and execute the following instruction:
-进入到工程目录并输入以下命令:
-
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
#### **npm**
@@ -36,9 +35,9 @@ npm install @react-native-oh-tpl/react-native-input-scroll-view@file:#
yarn add @react-native-oh-tpl/react-native-input-scroll-view@file:#
```
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```js
import React, { useState } from 'react';
@@ -85,19 +84,19 @@ const styles = StyleSheet.create({
export default keyboardOffsetInput;
```
-## 约束与限制
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-input-scroll-view Releases](https://github.com/react-native-oh-library/react-native-input-scroll-view/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-input-scroll-view Releases](https://github.com/react-native-oh-library/react-native-input-scroll-view/releases)
-## 属性
+## Properties
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
| Name | **Description** | Type | Required | **Default** | Platform | HarmonyOS Support |
| ------------------------- | ------------------------------------------------------------ | ------ | -------- | ----------- | ----------- | ----------------- |
@@ -109,12 +108,10 @@ export default keyboardOffsetInput;
| keyboardAvoidingViewProps | `KeyboardAvoidingView` 组件的 Props。详细请查阅: https://facebook.github.io/react-native/docs/keyboardavoidingview | props | false | null | iOS/Android | yes |
| ...ScrollView.props | 继承 `ScrollView` 组件的所有属性。详细请查阅: https://facebook.github.io/react-native/docs/scrollview.html | props | false | | iOS/Android | yes |
-####
-
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/baijunjie/react-native-input-scroll-view/blob/master/LICENSE) ,请自由地享受和参与开源。
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/baijunjie/react-native-input-scroll-view/blob/master/LICENSE).
--
Gitee
From afda6ba9d99bbae73a0ea5c21aa93089df4fd09b Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 16:19:48 +0800
Subject: [PATCH 32/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-mq?=
=?UTF-8?q?tt=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-mqtt.md | 92 ++++++++++++++++++++---------------------
1 file changed, 44 insertions(+), 48 deletions(-)
diff --git a/en/react-native-mqtt.md b/en/react-native-mqtt.md
index 34e3472ae..6e6b6cb5c 100644
--- a/en/react-native-mqtt.md
+++ b/en/react-native-mqtt.md
@@ -1,6 +1,4 @@
-
-
-模板版本:v0.2.2
+> Template version: v0.2.2
react-native-mqtt
@@ -15,11 +13,11 @@
-> [!TIP] [Github 地址](https://github.com/Introvertuous/react-native-mqtt)
+> [!TIP] [GitHub address](https://github.com/Introvertuous/react-native-mqtt)
-## 安装与使用
+## Installation and Usage
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
@@ -37,9 +35,9 @@ yarn add react_native_mqtt@1.3.1
-基本使用场景:
+The following code shows the basic use scenario of the repository:
-> [!WARNING] 使用时 import 的库名不变。(本组件基于MQTT 3.1.1协议)
+> [!WARNING] The name of the imported repository remains unchanged.(本组件基于MQTT 3.1.1协议)
```js
import init from 'react_native_mqtt';
@@ -123,58 +121,56 @@ function sendMessage() {
}
```
-## 约束与限制
-
-### 兼容性
+## Constraints
-本文档内容基于以下版本验证通过:
+### Compatibility
-1. RNOH: 0.72.27; SDK:HarmonyOS-Next-DB1 5.0.0.25; IDE:DevEco Studio 5.0.3.400; ROM:3.0.0.25;
-2. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71;
+This document is verified based on the following versions:
-## 属性
+1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.25; IDE: DevEco Studio 5.0.3.400; ROM: 3.0.0.25;
+2. RNOH: 0.72.33; SDK: OpenHarmony 5.0.0.71(API Version 12 Release); IDE: DevEco Studio 5.0.3.900; ROM: NEXT.0.0.71;
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+## Properties
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ----------------- | ---------------------------------------------------- | ------ | -------- | ------------ | ----------------- |
-| host | 服务器地址 | string | yes | Android、iOS | yes |
-| port | 服务器端口 | number | yes | Android、iOS | yes |
-| path | 服务器路径 | string | yes | Android、iOS | yes |
-| userName | 用户名 | string | yes | Android、iOS | yes |
-| password | 密码 | string | yes | Android、iOS | yes |
-| keepAliveInterval | 会话过期时间(秒) | number | no | Android、iOS | yes |
-| cleanSession | 消息持久化(值为TRUE时,当客户端掉线,清除以前消息) | bool | no | Android、iOS | yes |
-| clientId | 客户端ID | string | yes | Android、iOS | yes |
-| useSSL | SSL/TLS加密通信 | bool | yes | Android、iOS | yes |
-| qos | 服务级别质量 | number | yes | Android、iOS | yes |
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-## 静态方法
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------- | ---------------------------------------------------- | ------ | -------- |-------------| ----------------- |
+| host | 服务器地址 | string | yes | Android iOS | yes |
+| port | 服务器端口 | number | yes | Android iOS | yes |
+| path | 服务器路径 | string | yes | Android iOS | yes |
+| userName | 用户名 | string | yes | Android iOS | yes |
+| password | 密码 | string | yes | Android iOS | yes |
+| keepAliveInterval | 会话过期时间(秒) | number | no | Android iOS | yes |
+| cleanSession | 消息持久化(值为TRUE时,当客户端掉线,清除以前消息) | bool | no | Android iOS | yes |
+| clientId | 客户端ID | string | yes | Android iOS | yes |
+| useSSL | SSL/TLS加密通信 | bool | yes | Android iOS | yes |
+| qos | 服务级别质量 | number | yes | Android iOS | yes |
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+## Static Methods
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---------------- | ------------------ | ---- | -------- | ------------ | ----------------- |
-| client.connect | 连接MQTT服务器 | func | yes | Android、iOS | yes |
-| onConnect | 连接成功时的回调 | func | no | Android、iOS | yes |
-| onFailure | 连接失败时的回调 | func | no | Android、iOS | yes |
-| onConnectionLost | 连接丢失 | func | no | Android、iOS | yes |
-| onMessageArrived | 接收消息 | func | no | Android、iOS | yes |
-| disconnect | 取消连接MQTT服务器 | func | no | Android、iOS | yes |
-| subscribe | 订阅主题topic | func | no | Android、iOS | yes |
-| unSubscribe | 取消订阅topic | func | no | Android、iOS | yes |
-| sendMessage | 发布消息 | func | no | Android、iOS | yes |
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-## 遗留问题
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---------------- | ------------------ | ---- | -------- |-------------| ----------------- |
+| client.connect | 连接MQTT服务器 | func | yes | Android iOS | yes |
+| onConnect | 连接成功时的回调 | func | no | Android iOS | yes |
+| onFailure | 连接失败时的回调 | func | no | Android iOS | yes |
+| onConnectionLost | 连接丢失 | func | no | Android iOS | yes |
+| onMessageArrived | 接收消息 | func | no | Android iOS | yes |
+| disconnect | 取消连接MQTT服务器 | func | no | Android iOS | yes |
+| subscribe | 订阅主题topic | func | no | Android iOS | yes |
+| unSubscribe | 取消订阅topic | func | no | Android iOS | yes |
+| sendMessage | 发布消息 | func | no | Android iOS | yes |
-## 其他
+## Known Issues
-## 开源协议
+## Others
-本项目基于 [The MIT License (MIT)](https://github.com/Introvertuous/react-native-mqtt/blob/master/LICENSE) ,请自由地享受和参与开源。
+## License
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/Introvertuous/react-native-mqtt/blob/master/LICENSE).
--
Gitee
From d3da21008c85271400228f9218ada0ff95a35057 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 16:48:54 +0800
Subject: [PATCH 33/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-ic?=
=?UTF-8?q?onfont-cli=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-iconfont-cli.md | 47 ++++++++++++++++++---------------
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/en/react-native-iconfont-cli.md b/en/react-native-iconfont-cli.md
index fc400333f..da4f560e7 100644
--- a/en/react-native-iconfont-cli.md
+++ b/en/react-native-iconfont-cli.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-native-iconfont-cli
@@ -14,11 +13,13 @@
-> [!TIP] [Github 地址](https://github.com/iconfont-cli/react-native-iconfont-cli)
+> [!TIP] [GitHub address](https://github.com/iconfont-cli/react-native-iconfont-cli)
+
+## Installation and Usage
+
+Go to the project directory and execute the following instruction:
-## 安装与使用
-进入到工程目录并输入以下命令:
#### **npm**
@@ -33,11 +34,13 @@ yarn add react-native-iconfont-cli --dev
```
生成配置文件
+
```bash
npx iconfont-init
```
此时项目根目录会生成一个iconfont.json的文件,内容如下:
+
```json
{
"symbol_url": "symbol_url和local_svgs可以二选一,也可以都填",
@@ -50,18 +53,20 @@ npx iconfont-init
```
在配置的"save_dir"下生成React-Native标准组件
+
```bash
npx iconfont-rn
```
当您在iconfont.cn中的图标有变更时,只需更改配置symbol_url,然后再次执行以下命令即可生成最新的图标组件
+
```bash
npx iconfont-rn
```
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
```js
import { Component } from 'react';
@@ -177,24 +182,25 @@ export default function () {
```
## Link
-本库在HarmonyOS NEXT侧实现依赖@react-native-oh-tpl/react-native-svg 的原生端代码,如已在HarmonyOS NEXT工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。
+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.
+
+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.
-如未引入请参照[@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)进行引入
+## Constraints
-## 约束与限制
+### Compatibility
-### 兼容性
+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.22;
-RNOH:0.72.26; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.300; ROM:3.0.0.22;
+For details, see [react-native-iconfont-cli](https://github.com/iconfont-cli/react-native-iconfont-cli/blob/master/README.md)
-## 属性
-详细请查看 [react-native-iconfont-cli](https://github.com/iconfont-cli/react-native-iconfont-cli/blob/master/README.md) 的文档介绍
+## Properties
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
**IconFont组件属性**
@@ -214,11 +220,10 @@ RNOH:0.72.26; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.
| default_icon_size | 图标组件默认的字体大小 | string | no | Android/IOS | yes |
| local_svgs | 本地 svg 的路径(暂不支持 color 参数) | string | 和symbol_url可以二选一也可以都用 | Android/IOS | yes |
-## 遗留问题
+## Known Issues
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/iconfont-cli/react-native-iconfont-cli/blob/master/LICENSE) ,请自由地享受和参与开源。
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/iconfont-cli/react-native-iconfont-cli/blob/master/LICENSE).
--
Gitee
From 8cb0f66abf716f97d350783f81ee53af74dbc9a4 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Mon, 28 Oct 2024 17:06:35 +0800
Subject: [PATCH 34/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-vi?=
=?UTF-8?q?deo-cache=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-video-cache.md | 101 +++++++++++++++------------------
1 file changed, 47 insertions(+), 54 deletions(-)
diff --git a/en/react-native-video-cache.md b/en/react-native-video-cache.md
index 62b4f9094..0b5bb297c 100644
--- a/en/react-native-video-cache.md
+++ b/en/react-native-video-cache.md
@@ -1,5 +1,4 @@
-
-> 模板版本:v0.2.0
+> Template version: v0.2.2
react-native-video-cache
@@ -14,29 +13,25 @@
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-video-cache)
+## Installation and Usage
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases).
+Go to the project directory and execute the following instruction:
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-video-cache)
-
-## 安装与使用
-
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases),并下载适用版本的 tgz 包。
-
-进入到工程目录并输入以下命令:
-
->[!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
-#### npm
+#### **npm**
```bash
npm install @react-native-oh-tpl/react-native-video-cache@file:#
```
-#### yarn
+#### **yarn**
```bash
yarn add @react-native-oh-tpl/react-native-video-cache@file:#
@@ -44,9 +39,9 @@ yarn add @react-native-oh-tpl/react-native-video-cache@file:#
-下面的代码展示了这个库的基本使用场景:
+The following code shows the basic use scenario of the repository:
->[!WARNING] 使用时 import 的库名不变。
+> [!WARNING] The name of the imported repository remains unchanged.
```tsx
import React, { useEffect, useState } from "react";
@@ -93,11 +88,11 @@ const styles = StyleSheet.create({
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -108,18 +103,15 @@ const styles = StyleSheet.create({
}
```
-### 2.引入原生端代码
-
-目前有两种方法:
+### 2. Introducing Native Code
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Currently, two methods are available:
-方法一:通过 har 包引入
+Method 1 (recommended): Use the HAR file.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -128,20 +120,20 @@ const styles = StyleSheet.create({
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
-> [!TIP] 源码位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
@@ -150,16 +142,18 @@ ohpm install
}
```
-打开终端,执行:
+Click the `sync` button in the upper right corner.
+
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install --no-link
```
-### 3.在 ArkTs 侧引入 RNVideoCachePackage
+### 3. Introducing RNVideoCachePackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -173,50 +167,49 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
}
```
-### 4.运行
+### 4. Running
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
+
+## Constraints
-## 约束与限制
+### Compatibility
-### 兼容性
+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.
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases)
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases)。
+This document is verified based on the following versions:
-本文档内容基于以下版本验证通过:
1. RNOH: 0.72.20-CAPI; SDK: HarmonyOS NEXT Developer Beta1(full sdk); IDE: DevEco Studio 5.0.3.200; ROM: 3.0.0.18;
-## API
+## APIs
-> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-详情请见[react-native-video-cache](https://github.com/zhigang1992/react-native-video-cache)
+For details, see [react-native-video-cache](https://github.com/zhigang1992/react-native-video-cache)
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| -------------- | ---------------------------------------------------- | ------ | -------- | ----------- | ----------------- |
| convertToCache | Return the local proxy cache server URL using sync. | string | no | Androis/IOS | no |
| convertAsync | Return the local proxy cache server URL using async. | string | no | Androis/IOS | yes |
-## 其他
-
-## 遗留问题
-
+## Known Issues
- [ ] 由于 HarmonyOS 侧原生依赖 HarmonyOS 三方库@ohos/video-cache中HttpProxyCacheServer实例化对象方法getProxyUrl暂为异步方法,导致本库同步方法convertToCache暂无法实现,问题:[issue#1](https://github.com/react-native-oh-library/react-native-video-cache/issues/1)
-## 开源协议
+## Others
+
+## License
-本项目基于 [The MIT License (MIT)](https://www.mit-license.org) ,请自由地享受和参与开源。
-
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://www.mit-license.org).
--
Gitee
From 8df23e0aaf6f1a855ca4f4f8c296d952cd814693 Mon Sep 17 00:00:00 2001
From: zWX1317523
Date: Tue, 29 Oct 2024 16:19:08 +0800
Subject: [PATCH 35/35] =?UTF-8?q?docs:=20=E7=BF=BB=E8=AF=91react-native-da?=
=?UTF-8?q?te-picker=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-date-picker.md | 251 +++++++++++++++------------------
1 file changed, 116 insertions(+), 135 deletions(-)
diff --git a/en/react-native-date-picker.md b/en/react-native-date-picker.md
index 7e0b4ae9d..0b5bb297c 100644
--- a/en/react-native-date-picker.md
+++ b/en/react-native-date-picker.md
@@ -1,93 +1,98 @@
-模板版本:v0.2.2
+> Template version: v0.2.2
-
react-native-date-picker
+ react-native-video-cache
-
-
+
-
+
+
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-video-cache)
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-date-picker)
-
-
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-date-picker Releases](https://github.com/react-native-oh-library/react-native-date-picker/releases),并下载适用版本的 tgz 包。
+Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases).
-进入到工程目录并输入以下命令:
+Go to the project directory and execute the following instruction:
-> [!TIP] # 处替换为 tgz 包的路径
+> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-date-picker@file:#
+npm install @react-native-oh-tpl/react-native-video-cache@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-date-picker@file:#
+yarn add @react-native-oh-tpl/react-native-video-cache@file:#
```
-下面的代码展示了这个库的基本使用场景:
-
-> [!WARNING] 使用时 import 的库名不变。
-
-```js
-import React, { useState } from 'react'
-import { Button, View } from 'react-native'
-import DatePicker from 'react-native-date-picker'
-
-export default () => {
- const [date, setDate] = useState(new Date())
- const [open, setOpen] = useState(false)
-
- return (
-
- setOpen(true)} />
- {
- setOpen(false)
- setDate(date)
- }}
- onCancel={() => {
- setOpen(false)
- }}
- />
-
- )
+The following code shows the basic use scenario of the repository:
+
+> [!WARNING] The name of the imported repository remains unchanged.
+
+```tsx
+import React, { useEffect, useState } from "react";
+import { StyleSheet, Text, View } from "react-native";
+import { convertAsync } from "react-native-video-cache";
+
+export default function App() {
+ const url =
+ "https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4";
+ const [asyncVersion, setAsyncVersion] = useState('');
+ useEffect(() => {
+ convertAsync(url).then(setAsyncVersion);
+ }, [])
+ return (
+
+ ☆Original URL☆
+ {url}
+ ☆Async Proxy URL☆
+ {asyncVersion}
+
+ );
}
-
+const styles = StyleSheet.create({
+ container: {
+ flex: 1,
+ justifyContent: "center",
+ alignItems: "center",
+ backgroundColor: "#F5FCFF",
+ padding: 20
+ },
+ welcome: {
+ fontSize: 20,
+ textAlign: "center",
+ margin: 10,
+ },
+ instructions: {
+ textAlign: "center",
+ color: "#333333",
+ marginBottom: 5,
+ },
+});
```
-## 使用 Codegen
-
-本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。
-
## Link
-目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking.
-首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`
+Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
-### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段
+### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project
```json
{
@@ -98,137 +103,113 @@ export default () => {
}
```
-### 2.引入原生端代码
+### 2. Introducing Native Code
-目前有两种方法:
+Currently, two methods are available:
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
+Method 1 (recommended): Use the HAR file.
-方法一:通过 har 包引入(推荐)
+> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library.
-> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。
-
-打开 `entry/oh-package.json5`,添加以下依赖
+Open `entry/oh-package.json5` file and add the following dependencies:
```json
"dependencies": {
"@rnoh/react-native-openharmony": "file:../react_native_openharmony",
- "@react-native-oh-tpl/react-native-date-picker": "file:../../node_modules/@react-native-oh-tpl/react-native-date-picker/harmony/date_picker.har"
+ "@react-native-oh-tpl/rnoh-video-cache": "file:../../node_modules/@react-native-oh-tpl/react-native-video-cache/harmony/react_native_video_cache.har"
}
```
-点击右上角的 `sync` 按钮
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-方法二:直接链接源码
+Method 2: Directly link to the source code.
+
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
+Open `entry/oh-package.json5` file and add the following dependencies:
-> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md)
+```json
+"dependencies": {
+ "@rnoh/react-native-openharmony": "file:../react_native_openharmony",
+ "@react-native-oh-tpl/rnoh-video-cache": "file:../../node_modules/@react-native-oh-tpl/react-native-video-cache/harmony/react_native_video_cache"
+ }
+```
-### 3.在 ArkTs 侧引入 NativeDatePickerView 组件
-找到 **function buildCustomRNComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加:
+Click the `sync` button in the upper right corner.
-```diff
- ...
-+ import { NativeDatePickerView } from "@react-native-oh-tpl/react-native-date-picker"
+Alternatively, run the following instruction on the terminal:
-@Builder
-export function buildCustomRNComponent(ctx: ComponentBuilderContext) {
- ...
-+ if (ctx.componentName === NativeDatePickerView.NAME) {
-+ NativeDatePickerView({
-+ ctx: ctx.rnComponentContext,
-+ tag: ctx.tag
-+ })
-+ }
- ...
-}
-...
+```bash
+cd entry
+ohpm install --no-link
```
-> [!TIP] 本库使用了混合方案,需要添加组件名。
-在entry/src/main/ets/pages/index.ets 或 entry/src/main/ets/rn/LoadBundle.ets 找到常量 arkTsComponentNames 在其数组里添加组件名
+### 3. Introducing RNVideoCachePackage to ArkTS
+
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
-const arkTsComponentNames: Array = [
- SampleView.NAME,
- GeneratedSampleView.NAME,
- PropsDisplayer.NAME,
-+ NativeDatePickerView.NAME,
++ import { RNVideoCachePackage } from '@react-native-oh-tpl/rnoh-video-cache/ts';
+
+export function createRNPackages(ctx: RNPackageContext): RNPackage[] {
+ return [
+ new SamplePackage(ctx),
++ new RNVideoCachePackage(ctx)
];
+}
```
-### 4.运行
-点击右上角的 `sync` 按钮
+### 4. Running
+
+Click the `sync` button in the upper right corner.
-或者在终端执行:
+Alternatively, run the following instruction on the terminal:
```bash
cd entry
ohpm install
```
-然后编译、运行即可。
+Then build and run the code.
+
+## Constraints
-### 兼容性
+### Compatibility
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+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.
+Check the release version information in the release address of the third-party library: [@react-native-oh-library/react-native-video-cache Releases](https://github.com/react-native-oh-library/react-native-video-cache/releases)
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-date-picker Releases](https://github.com/react-native-oh-library/react-native-date-picker/releases)
+This document is verified based on the following versions:
+1. RNOH: 0.72.20-CAPI; SDK: HarmonyOS NEXT Developer Beta1(full sdk); IDE: DevEco Studio 5.0.3.200; ROM: 3.0.0.18;
+## APIs
-## 属性
+> [!tip] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+> [!tip] If the value of **HarmonyOS Support** is **yes**, it means that the HarmonyOS platform supports this property; **no** means the opposite; **partially** means some capabilities of this property are supported. The usage method is the same on different platforms and the effect is the same as that of iOS or Android.
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+For details, see [react-native-video-cache](https://github.com/zhigang1992/react-native-video-cache)
-| props | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | ---- | ------------ |
-| date | The currently selected date. | Date | no | all | yes|
-| onDateChange | Date change handler ( Inline only ) | (date: Date) => void | no | all | yes|
-| maximumDate | Maximum selectable date.Example: new Date("2021-12-31") | Date | no | all | yes|
-| minimumDate | Minimum selectable date.Example: new Date("2021-01-01") | Date | no | all | yes|
-| mode | The date picker mode. "datetime", "date", "time" | “'date' \|'time' \| 'datetime'” | yes | all | yes|
-| onConfirm | Modal only: Date callback when user presses confirm button | (date: Date) => void | no | all | yes|
-| onCancel | Modal only: Callback for when user presses cancel button or closing the modal by pressing outside it. | () => void | no | all | yes|
-| is24hourSource | Change how the 24h mode (am/pm) should be determined, by device settings or by locale. {'locale', 'device'} (android only, default: 'device') | “'locale' \| 'device'” | no | all | no|
-| modal | Boolean indicating if modal should be used. Default: "false". When enabled, the other modal props needs to be used. | boolean | no | all | yes|
-| open | Modal only: Boolean indicating if modal should be open. | boolean | no | all | yes|
-| minuteInterval | The interval at which minutes can be selected. | 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 10 \| 12 \| 15 \| 20 \| 30 | no | all | no|
-| title | Modal only: Title text. Can be set to null to remove text. | string | no | all | no|
-| confirmText | Modal only: Confirm button text | string | no | all | no|
-| cancelText | Modal only: Cancel button text. | string | no | all | no|
-| theme | Modal only: The theme of the modal. "light", "dark", "auto". Defaults to "auto". | 'light' \| 'dark' \| 'auto' | no | all | no|
-| buttonColor | Color of the confirm and cancel buttons. (android modal only) | string | no | Android | no|
-| dividerColor | Color of the divider / separator. (android only) | string | no | Android | no|
-| onStateChange | Spinner state change handler. Triggered on changes between "idle" and "spinning" state (Android inline only) | (state: 'spinning' \| 'idle') => void | no | Android | no|
-| locale | The locale for the date picker. Changes language, date order and am/pm preferences. Value needs to be a Locale ID. | string | no | all | no|
-| timeZoneOffsetInMinutes | imezone offset in minutes (default: device's timezone) | number | no | all | no|
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| -------------- | ---------------------------------------------------- | ------ | -------- | ----------- | ----------------- |
+| convertToCache | Return the local proxy cache server URL using sync. | string | no | Androis/IOS | no |
+| convertAsync | Return the local proxy cache server URL using async. | string | no | Androis/IOS | yes |
+## Known Issues
+- [ ] 由于 HarmonyOS 侧原生依赖 HarmonyOS 三方库@ohos/video-cache中HttpProxyCacheServer实例化对象方法getProxyUrl暂为异步方法,导致本库同步方法convertToCache暂无法实现,问题:[issue#1](https://github.com/react-native-oh-library/react-native-video-cache/issues/1)
-## 遗留问题
-
-- [ ] 不支持属性confirmText。[issue#11](https://github.com/react-native-oh-library/react-native-date-picker/issues/11)
-- [ ] 不支持属性cancelText。[issue#12](https://github.com/react-native-oh-library/react-native-date-picker/issues/12)
-- [ ] 不支持属性theme。[issue#13](https://github.com/react-native-oh-library/react-native-date-picker/issues/13)
-- [ ] 不支持属性locale。[issue#17](https://github.com/react-native-oh-library/react-native-date-picker/issues/17)
-- [ ] 不支持属性timeZoneOffsetInMinutes。[issue#18](https://github.com/react-native-oh-library/react-native-date-picker/issues/18)
-- [ ] 当属性modal为false,mode属性为datetime时,harmonyOS不支持内联datetime组件。[issue#22](https://github.com/react-native-oh-library/react-native-date-picker/issues/22)
-- [ ] 不支持is24hourSource属性。[issue#30](https://github.com/react-native-oh-library/react-native-date-picker/issues/30)
-- [ ] 不支持minuteInterval属性。[issue#34](https://github.com/react-native-oh-library/react-native-date-picker/issues/34)
-## 其他
+## Others
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/henninghall/react-native-date-picker/blob/master/LICENSE) ,请自由地享受和参与开源。
+This project is licensed under [The MIT License (MIT)](https://www.mit-license.org).
--
Gitee