From bf175c1a92c5f92768105f23ca0412b58b4de430 Mon Sep 17 00:00:00 2001
From: ljje <1370314186@qq.com>
Date: Sat, 12 Oct 2024 10:23:41 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IAWGSR]=20=E7=BF=BB?=
=?UTF-8?q?=E8=AF=91baronha-ting=E7=AD=89=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/baronha-ting.md | 162 +-
en/react-content-loader.md | 133 +-
en/react-native-awesome-gallery.md | 42 +-
en/react-native-background-fetch.md | 92 +-
en/react-native-bars.md | 182 +--
en/react-native-ble-manager.md | 172 +-
en/react-native-dismiss-keyboard.md | 213 +--
en/react-native-email-link.md | 83 +-
en/react-native-fast-image.md | 131 +-
en/react-native-file-access.md | 113 +-
en/react-native-file-viewer.md | 278 ++--
en/react-native-gifted-charts.md | 1716 ++++++++++----------
en/react-native-image-capinsets-next.md | 141 +-
en/react-native-image-colors.md | 136 +-
en/react-native-image-pan-zoom.md | 125 +-
en/react-native-image-viewing.md | 75 +-
en/react-native-keyboard-accessory.md | 159 +-
en/react-native-keys.md | 112 +-
en/react-native-loading-spinner-overlay.md | 120 +-
en/react-native-mail.md | 79 +-
en/react-native-maps-directions.md | 226 +--
en/react-native-markdown-renderer.md | 44 +-
en/react-native-masked-text.md | 32 +-
en/react-native-notifier.md | 44 +-
en/react-native-parsed-text.md | 208 +--
en/react-native-phone-number-input.md | 38 +-
en/react-native-reanimated-bottom-sheet.md | 147 +-
en/react-native-safe-modules.md | 118 +-
en/react-native-screenshot-prevent.md | 79 +-
en/react-native-scroll-bottom-sheet.md | 38 +-
en/react-native-send-intent.md | 272 ++--
en/react-native-sensitive-info.md | 197 ++-
en/react-native-shake.md | 141 +-
en/react-native-signature-canvas.md | 191 ++-
en/react-native-snackbar.md | 87 +-
en/react-native-sticky-parallax-header.md | 122 +-
en/react-native-svg-capi.md | 350 ++--
en/react-native-tcp-socket.md | 193 ++-
en/react-native-theme-control.md | 112 +-
en/react-native-theme-switch-animation.md | 201 ++-
en/react-native-tts.md | 167 +-
en/react-native-version-number.md | 79 +-
en/react-native-voice-voice.md | 721 ++++----
en/react-native-walkthrough-tooltip.md | 83 +-
en/react-navigation-bottom-sheet.md | 100 +-
en/react-navigation.md | 41 +-
en/reassure.md | 112 +-
en/rn-emoji-keyboard.md | 86 +-
48 files changed, 4222 insertions(+), 4271 deletions(-)
diff --git a/en/baronha-ting.md b/en/baronha-ting.md
index 723d4294..1674017e 100644
--- a/en/baronha-ting.md
+++ b/en/baronha-ting.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
@baronha/ting
@@ -12,16 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/ting)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/ting)
+## 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/ting Releases](https://github.com/react-native-oh-library/ting/releases).
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/ting Releases](https://github.com/react-native-oh-library/ting/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 (#).
@@ -39,9 +38,9 @@ yarn add @react-native-oh-tpl/ting@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 { View } from "react-native";
@@ -73,17 +72,17 @@ const App = () => {
export default App;
```
-## 使用 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](/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
{
@@ -94,18 +93,15 @@ export default App;
}
```
-### 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": {
@@ -114,22 +110,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](/zh-cn/link-source-code.md).
-### 3.在 ArkTs 侧引入 RNTingPackage
+### 3. Introducing RNTingPackage to ArkTS
-打开 `entry/src/main/ets/RNPackagesFactory.ets`,添加:
+Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code:
```diff
...
@@ -143,90 +139,90 @@ 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
-要使用此库,需要使用正确的 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/ting Releases](https://github.com/react-native-oh-library/ting/releases)
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/ting Releases](https://github.com/react-native-oh-library/ting/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.
### ToastOptions
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-|----------------------|---------------------------------------------------------|------|----------|----------|---------------------|
-| title | The text for the toast’s title | string | no | All | yes |
-| message | The text for the toast’s message | string | no | All | yes |
-| titleColor | The color of the title text in hexadecimal format | string | no | All | yes |
-| messageColor | The color of the message text in hexadecimal format | string | no | All | yes |
-| preset | The preset style of the toast. Options include done (success), error (error), none (no style), or spinner (loading spinner) | string | no | All | partially |
-| duration | The lifetime of the toast (seconds) | number | no | All | yes |
-| haptic | The type of haptic feedback. Options include success (success), warning (warning), error (error), or none (no haptic feedback) | string | no | iOS | yes |
-| shouldDismissByDrag | Whether the toast can be dismissed by dragging | boolean | no | All | yes |
-| position | Toast is displayed from top or bottom | string | no | All |yes |
-| backgroundColor | The background color of the toast in hexadecimal format| string | no | All |yes |
-| icon | A custom icon for the toast | object | no | All | yes |
-| progressColor | The color of the progress spinner for the spinner preset style | string | no | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------- | -------- | -------- | ----------------- |
+| title | The text for the toast’s title | string | no | All | yes |
+| message | The text for the toast’s message | string | no | All | yes |
+| titleColor | The color of the title text in hexadecimal format | string | no | All | yes |
+| messageColor | The color of the message text in hexadecimal format | string | no | All | yes |
+| preset | The preset style of the toast. Options include done (success), error (error), none (no style), or spinner (loading spinner) | string | no | All | partially |
+| duration | The lifetime of the toast (seconds) | number | no | All | yes |
+| haptic | The type of haptic feedback. Options include success (success), warning (warning), error (error), or none (no haptic feedback) | string | no | iOS | yes |
+| shouldDismissByDrag | Whether the toast can be dismissed by dragging | boolean | no | All | yes |
+| position | Toast is displayed from top or bottom | string | no | All | yes |
+| backgroundColor | The background color of the toast in hexadecimal format | string | no | All | yes |
+| icon | A custom icon for the toast | object | no | All | yes |
+| progressColor | The color of the progress spinner for the spinner preset style | string | no | Android | yes |
### AlertOptions
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| title | The text for the toast’s title | string | no | All | yes |
-| message | The text for the toast’s message | string | no | All | yes |
-| titleColor | The color of the title text in hexadecimal format | string | no | All | yes |
-| messageColor | The color of the message text in hexadecimal format | string | no | All | yes |
-| preset | The preset style of the toast. Options include done (success), error (error), none (no style), or spinner (loading spinner) | string | no | All | partially |
-| duration | The lifetime of the toast (seconds) | number | no | All | yes |
-| haptic | The type of haptic feedback. Options include success (success), warning (warning), error (error), or none (no haptic feedback) | string | no | iOS | yes |
-| shouldDismissByTap | Whether the toast can be dismissed by tapping | boolean | no | All | yes |
-| backgroundColor | The background color of the toast in hexadecimal format| string | no | All |yes |
-| borderRadius | The border radius of the toast box, which determines how rounded the corners are | number | no | All | yes |
-| blurBackdrop | The intensity of the background blur effect on Android platforms | number | no | Android | no |
-| backdropOpacity | The opacity of the background blur effect on Android platforms, with a range from 0 (fully transparent) to 1 (fully opaque) | number | no | All | yes |
-| icon | A custom icon for the toast | object | no | All | yes |
-| progressColor | The color of the progress spinner for the spinner preset style | string | no | Android | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------- | -------- | -------- | ----------------- |
+| title | The text for the toast’s title | string | no | All | yes |
+| message | The text for the toast’s message | string | no | All | yes |
+| titleColor | The color of the title text in hexadecimal format | string | no | All | yes |
+| messageColor | The color of the message text in hexadecimal format | string | no | All | yes |
+| preset | The preset style of the toast. Options include done (success), error (error), none (no style), or spinner (loading spinner) | string | no | All | partially |
+| duration | The lifetime of the toast (seconds) | number | no | All | yes |
+| haptic | The type of haptic feedback. Options include success (success), warning (warning), error (error), or none (no haptic feedback) | string | no | iOS | yes |
+| shouldDismissByTap | Whether the toast can be dismissed by tapping | boolean | no | All | yes |
+| backgroundColor | The background color of the toast in hexadecimal format | string | no | All | yes |
+| borderRadius | The border radius of the toast box, which determines how rounded the corners are | number | no | All | yes |
+| blurBackdrop | The intensity of the background blur effect on Android platforms | number | no | Android | no |
+| backdropOpacity | The opacity of the background blur effect on Android platforms, with a range from 0 (fully transparent) to 1 (fully opaque) | number | no | All | yes |
+| icon | A custom icon for the toast | object | no | All | yes |
+| progressColor | The color of the progress spinner for the spinner preset style | string | no | Android | yes |
## API
-> [!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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| toast | Displays a Toast notification | function | yes | All | yes |
-| alert | Displays an Alert dialog | function | yes | All | yes |
-| dismissAlert | Closes the currently displayed Alert dialog | function | yes | All | yes |
-| setup | Configures global settings for Toast and Alert | function | yes | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------ | ---------------------------------------------- | -------- | -------- | -------- | ----------------- |
+| toast | Displays a Toast notification | function | yes | All | yes |
+| alert | Displays an Alert dialog | function | yes | All | yes |
+| dismissAlert | Closes the currently displayed Alert dialog | function | yes | All | yes |
+| setup | Configures global settings for Toast and Alert | function | yes | All | yes |
-## 遗留问题
+## Known Issues
-- [ ] AlertOptions和ToastOptions中的preset:done,动画效果未实现。[issue#3](https://github.com/react-native-oh-library/ting/issues/3)
+- [ ] AlertOptions 和 ToastOptions 中的 preset:done,动画效果未实现。[issue#3](https://github.com/react-native-oh-library/ting/issues/3)
-## 其他
+## Others
-- AlertOptions中的blurBackdrop参数配置后,iOS不支持,Android无效果。
+- AlertOptions 中的 blurBackdrop 参数配置后,iOS 不支持,Android 无效果。
-## 开源协议
+## License
-本项目基于 [The MIT License (MIT)](https://github.com/baronha/ting/blob/main/LICENSE) ,请自由地享受和参与开源。
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/baronha/ting/blob/main/LICENSE).
diff --git a/en/react-content-loader.md b/en/react-content-loader.md
index 0464395d..048852ca 100644
--- a/en/react-content-loader.md
+++ b/en/react-content-loader.md
@@ -1,4 +1,4 @@
-> 模板版本:v0.2.2
+> Template version: v0.2.2
react-content-loader
@@ -12,16 +12,15 @@
-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-content-loader)
+> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-content-loader)
-## 安装与使用
+## Installation and Usage
-请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-content-loader Releases](https://github.com/react-native-oh-library/react-content-loader/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-content-loader Releases](https://github.com/react-native-oh-library/react-content-loader/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,84 +38,92 @@ yarn add @react-native-oh-tpl/react-content-loader@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 ContentLoader, { Facebook, Code, List, BulletList, Instagram, Rect, Circle } from 'react-content-loader/native'
-import { View, ScrollView } from "react-native"
+import ContentLoader, {
+ Facebook,
+ Code,
+ List,
+ BulletList,
+ Instagram,
+ Rect,
+ Circle,
+} from "react-content-loader/native";
+import { View, ScrollView } from "react-native";
export function AppExample() {
- return
-
-
-
-
-
-
-
-
-
-
-
-
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
}
-
```
+
## Link
本库依赖@react-native-oh-tpl/react-native-svg,如已在鸿蒙工程中引入过该库,则无需再次引入。
如未引入请参照[@react-native-oh-tpl/react-native-svg 文档](/zh-cn/react-native-svg-capi.md)进行引入
+## 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.
+Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-content-loader Releases](https://github.com/react-native-oh-library/react-content-loader/releases)
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+## Properties
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-content-loader Releases](https://github.com/react-native-oh-library/react-content-loader/releases)
+> [!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.
-## 属性
+### Options
-> [!TIP] "Platform"列表示该属性在原三方库上支持的平台。
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------- | -------------- | ----------------- |
+| animate | Opt-out of animations with false | boolean | no | all | yes |
+| speed | Animation speed in seconds | number | no | all | yes |
+| rtl | Content right-to-left | boolean | no | all | yes |
+| backgroundColor | Used as background of animation | string | no | all | yes |
+| viewBox | Use viewBox props to set a custom viewBox value,for more information about how to use it,read the article [How to Scale SVG](https://css-tricks.com/scale-svg/) | string | no | all | yes |
+| foregroundColor | Used as the foreground of animation | string | no | all | yes |
+| interval | Animation interval in seconds | number | no | all | yes |
+| beforeMask | Define custom shapes before content | JSX.Element | no | all | partially |
+| uniqueKey | Use the same value of prop key, that will solve inconsistency on the SSR | string | no | React DOM only | no |
+| title | It's used to describe what element it is. Use '' (empty string) to remove. | string | no | React DOM only | no |
+| baseUrl | Required if you're using `` document ``. This prop is common used as: `` which will fill the SVG attribute with the relative path. Related [#93](https://github.com/danilowoz/react-content-loader/issues/93). | string | no | React DOM only | no |
+| backgroundOpacity | Background opacity (0 = transparent, 1 = opaque)used to solve an issue in [Safari](#safari--ios) | number | no | React DOM only | no |
+| foregroundOpacity | Animation opacity (0 = transparent, 1 = opaque)used to solve an issue in [Safari](#safari--ios) | number | no | React DOM only | no |
+| style | css style | React.CSSProperties | no | React DOM only | no |
-> [!TIP] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+## Known Issues
-### Options
+- [ ] beforeMaskProperties 设置非 svg 暴露出来的组件时无效: [issue#256](https://github.com/react-native-oh-library/react-native-harmony-svg/issues/256)
+
+## Others
+
+## License
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| animate | Opt-out of animations with false | boolean | no | all | yes |
-| speed | Animation speed in seconds | number | no | all | yes |
-| rtl | Content right-to-left | boolean | no | all | yes |
-| backgroundColor | Used as background of animation | string | no | all | yes |
-| viewBox | Use viewBox props to set a custom viewBox value,for more information about how to use it,read the article [How to Scale SVG](https://css-tricks.com/scale-svg/) | string | no | all | yes |
-| foregroundColor | Used as the foreground of animation | string | no | all | yes |
-| interval | Animation interval in seconds | number | no | all | yes |
-| beforeMask | Define custom shapes before content | JSX.Element | no | all | partially |
-| uniqueKey | Use the same value of prop key, that will solve inconsistency on the SSR | string | no | React DOM only | no |
-| title | It's used to describe what element it is. Use '' (empty string) to remove. | string | no | React DOM only | no |
-| baseUrl | Required if you're using `` document `