From 6b93c5b0e9a4b6fba1fb0e3f78a93b56e563dc89 Mon Sep 17 00:00:00 2001
From: sunshinezjb
Date: Thu, 26 Dec 2024 16:55:10 +0800
Subject: [PATCH 1/4] =?UTF-8?q?docs:=20[issues:=20#IBDYPN]=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9react-native-alipay,react-native-audio-toolkits?=
=?UTF-8?q?=E7=AD=89=E5=BA=93=E7=9A=84=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-alipay.md | 38 +++++------
en/react-native-audio-toolkit.md | 102 +++++++++++++++---------------
en/react-native-config.md | 44 ++++++-------
en/react-native-file-selector.md | 81 ++++++++++++------------
en/react-native-image-rotate.md | 8 +--
en/react-native-thumbnail.md | 26 ++++----
en/react-native-user-agent.md | 56 ++++++++--------
en/react-native-video-controls.md | 10 +--
8 files changed, 182 insertions(+), 183 deletions(-)
diff --git a/en/react-native-alipay.md b/en/react-native-alipay.md
index 46870ffa..4ff6ebde 100644
--- a/en/react-native-alipay.md
+++ b/en/react-native-alipay.md
@@ -16,22 +16,22 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-alipay Releases](https://github.com/react-native-oh-library/react-native-alipay/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+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-alipay Releases](https://github.com/react-native-oh-library/react-native-alipay/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 (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-alipay
+npm install @react-native-oh-tpl/react-native-alipay@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-alipay
+yarn add @react-native-oh-tpl/react-native-alipay@file:#
```
The following code shows the basic use scenario of the repository:
@@ -47,7 +47,7 @@ import { AFAuthServiceResponse, } from '@alipay/afservicesdk';
function App(): React.JSX.Element {
const urlStr: string = 'https://authweb.alipay.com/auth?auth_type=PURE_OAUTH_SDK&app_id=2016051801417322&scope=auth_user&state=init';
- const bundleName: string = "com.example.harmony"; // 包名
+ const bundleName: string = "com.example.harmony"; // Bundle name
const moduleName: string = "entry";
const abilityName: string = "EntryAbility";
@@ -58,7 +58,7 @@ function App(): React.JSX.Element {
-> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-audio-toolkit)
+> [!tip] [GitHub address](https://github.com/react-native-oh-library/react-native-audio-toolkit)
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/audio-toolkit Releases](https://github.com/react-native-oh-library/react-native-audio-toolkit/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/audio-toolkit Releases](https://github.com/react-native-oh-library/react-native-audio-toolkit/releases). For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
Go to the project directory and execute the following instruction:
@@ -42,9 +42,9 @@ The following code shows the basic use scenario of the repository:
> [!WARNING] The name of the imported repository remains unchanged.
-> [!TIP] # demo used third party library [@react-native-oh-tpl/react-native-slider](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-slider.md)
+> [!TIP] # The demo uses third-party libraries: [@react-native-oh-tpl/react-native-slider](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-slider.md)
-> [!TIP] # demo used third party library permission [@react-native-oh-tpl/react-native-permissions](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-permissions.md)
+> [!TIP] # The demo uses third-party library permissions: [@react-native-oh-tpl/react-native-permissions](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-permissions.md)
```tsx
import React, { Component } from "react";
@@ -428,7 +428,7 @@ const styles = StyleSheet.create({
## Use Codegen
-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).
+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
@@ -492,7 +492,7 @@ ohpm install
Method 2: Directly link to the source code.
-> [!TIP] For details, see [Directly Linking Source Code](/zh-cn/link-source-code.md).
+> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md).
### 4. Running
@@ -517,7 +517,7 @@ Check the release version information in the release address of the third-party
### Permission Requirements
-- 如果 source 使用网络 url 应用需要申请网络权限
+- If the source uses the network URL, the application needs to apply for the network permission.
Open the `entry/src/main/module.json5` file and add the following code:
@@ -529,7 +529,7 @@ requestPermissions: [
],
```
-- 如果使用录音功能,需要申请录音权限
+- To use the recording function, you need to apply for the recording permission.
Open the `entry/src/main/module.json5` file and add the following code:
@@ -550,69 +550,69 @@ requestPermissions: [
## Player
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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.
### Properties
-| Name | Description | Type | Default | Required | Platform | HarmonyOS Support |
-| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | --------------------------- | -------- | ---------------- | ----------------- |
-| autoDestroy | Boolean to indicate whether the player should self-destruct after playback is finished. If this is not set, you are responsible for destroying the object by calling player.destroy(). | boolean | True | No | All | Yes |
-| continuesToPlayInBackground | (Android only) Should playback continue if app is sent to background? iOS will always pause in this case. | boolean | False | No | Android | Yes |
-| category | (iOS only) Define the audio session category Options: Playback, Ambient and SoloAmbient More info about categories can be found here: https://developer.apple.com/documentation/avfoundation/avaudiosession/category | PlaybackCategories | PlaybackCategories.Playback | No | IOS | No |
-| mixWithOthers | Boolean to determine whether other audio sources on the device will mix with sounds being played back by this module. If this is not set, playback of audio will stop other sources | boolean | False | No | Android IOS | No |
-| looping | Get/set looping status of the current file. If true, file will loop when playback reaches end of file. | boolean | False | No | All | Yes |
-| volume | Get/set playback volume. The scale is from 0.0 (silence) to 1.0 (full volume). | Number | 1.0 | No | All | Yes |
-| speed | Get/set the playback speed for audio. NOTE: On Android, this is only supported on Android 6.0+. | Number | 1.0 | No | All | Yes |
+| Name | Description | Type | Default | Required | Platform | HarmonyOS Support |
+| --------------------------- | ------------------------------------------------------------ | ------------------ | --------------------------- | -------- | ---------------- | ----------------- |
+| autoDestroy | Boolean to indicate whether the player should self-destruct after playback is finished. If this is not set, you are responsible for destroying the object by calling player.destroy(). | boolean | True | No | All | Yes |
+| continuesToPlayInBackground | (Android only) Should playback continue if app is sent to background? iOS will always pause in this case. | boolean | False | No | Android | Yes |
+| category | (iOS only) Define the audio session category Options: Playback, Ambient and SoloAmbient More info about categories can be found here: https://developer.apple.com/documentation/avfoundation/avaudiosession/category | PlaybackCategories | PlaybackCategories.Playback | No | iOS | No |
+| mixWithOthers | Boolean to determine whether other audio sources on the device will mix with sounds being played back by this module. If this is not set, playback of audio will stop other sources | boolean | False | No | Android iOS| No |
+| looping | Get/set looping status of the current file. If true, file will loop when playback reaches end of file. | boolean | False | No | All | Yes |
+| volume | Get/set playback volume. The scale is from 0.0 (silence) to 1.0 (full volume). | Number | 1.0 | No | All | Yes |
+| speed | Get/set the playback speed for audio. NOTE: On Android, this is only supported on Android 6.0+. | Number | 1.0 | No | All | Yes |
### Static Methods
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
-| prepare | Prepare playback of the file provided during initialization. This method is optional to call but might be useful to preload the file so that the file starts playing immediately when calling play(). Otherwise the file is prepared when calling play() which may result in a small delay. Callback is called with empty first parameter when file is ready for playback with `play()`. If there was an error, the callback is called with an error object as first parameter. See Callbacks for more information. | function | No | All | Yes |
-| play | Start playback. If callback is given, it is called when playback has started. | function | No | All | Yes |
-| pause | Pauses playback. Playback can be resumed by calling `play()` with no parameters. Callback is called after the operation has finished. | function | No | All | Yes |
-| playPause | Helper method for toggling pause. Callback is called after the operation has finished. Callback receives `Object error` as first argument, `Boolean paused` as second argument indicating if the player ended up playing (false) or paused (true). | function | No | All | Yes |
-| stop | Stop playback. If `autoDestroy` option was set during initialization, clears all media resources from memory. In this case the player should no longer be used. | function | No | All | Yes |
-| destroy | Stops playback and destroys the player. The player should no longer be used. Callback is called after the operation has finished. | function | No | All | Yes |
-| seek | Seek in currently playing media. `position` is the offset from the start. If callback is given, it is called when the seek operation completes. If another seek operation is performed before the previous has finished, the previous operation gets an error in its callback with the `err` field set to `oldcallback`. The previous operation should likely do nothing in this case. | function | No | All | Yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| --------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
+| prepare | Prepare playback of the file provided during initialization. This method is optional to call but might be useful to preload the file so that the file starts playing immediately when calling play(). Otherwise the file is prepared when calling play() which may result in a small delay. Callback is called with empty first parameter when file is ready for playback with `play()`. If there was an error, the callback is called with an error object as first parameter. See Callbacks for more information. | function | No | All | Yes |
+| play | Start playback. If callback is given, it is called when playback has started. | function | No | All | Yes |
+| pause | Pauses playback. Playback can be resumed by calling `play()` with no parameters. Callback is called after the operation has finished. | function | No | All | Yes |
+| playPause | Helper method for toggling pause. Callback is called after the operation has finished. Callback receives `Object error` as first argument, `Boolean paused` as second argument indicating if the player ended up playing (false) or paused (true). | function | No | All | Yes |
+| stop | Stop playback. If `autoDestroy` option was set during initialization, clears all media resources from memory. In this case the player should no longer be used. | function | No | All | Yes |
+| destroy | Stops playback and destroys the player. The player should no longer be used. Callback is called after the operation has finished. | function | No | All | Yes |
+| seek | Seek in currently playing media. `position` is the offset from the start. If callback is given, it is called when the seek operation completes. If another seek operation is performed before the previous has finished, the previous operation gets an error in its callback with the `err` field set to `oldcallback`. The previous operation should likely do nothing in this case. | function | No | All | Yes |
## Recorder
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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.
### Properties
-| Name | Description | Type | Default | Required | Platform | HarmonyOS Support |
-| ---------- | -------------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------- | -------- | -------- | ----------------- |
-| bitrate | Set bitrate for the recorder, in bits per second | Number | 128000 | No | All | Yes |
-| channels | Set number of channels | Number | 2 | No | All | Yes |
-| sampleRate | Set how many samples per second | Number | 48000 | No | All | Yes |
-| format | Override format. Possible values: Cross-platform: 'mp4' Android only: 'ogg', 'webm', 'amr' HarmonyOS only: 'm4a' | String | based on filename extension | No | All | Yes |
-| encoder | Override encoder. Android only. Possible values: 'aac', 'mp4', 'webm', 'ogg', 'amr' HarmonyOS only: 'aac' | String | based on filename extension | No | Android | partially |
-| quality | Quality of the recording, iOS only. Possible values: 'min', 'low', 'medium', 'high', 'max' | String | medium | No | IOS | No |
+| Name | Description | Type | Default | Required | Platform | HarmonyOS Support |
+| ---------- | ------------------------------------------------------------ | ------ | --------------------------- | -------- | -------- | ----------------- |
+| bitrate | Set bitrate for the recorder, in bits per second | Number | 128000 | No | All | Yes |
+| channels | Set number of channels | Number | 2 | No | All | Yes |
+| sampleRate | Set how many samples per second | Number | 48000 | No | All | Yes |
+| format | Override format. Possible values: Cross-platform: 'mp4' Android only: 'ogg', 'webm', 'amr' HarmonyOS only: 'm4a' | String | based on filename extension | No | All | Yes |
+| encoder | Override encoder. Android only. Possible values: 'aac', 'mp4', 'webm', 'ogg', 'amr' HarmonyOS only: 'aac' | String | based on filename extension | No | Android | partially |
+| quality | Quality of the recording, iOS only. Possible values: 'min', 'low', 'medium', 'high', 'max' | String | medium | No | iOS | No |
### Static Methods
-> [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------- | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- |
| prepare | Prepare recording to the file provided during initialization. This method is optional to call but it may be beneficial to call to make sure that recording begins immediately after calling record(). Otherwise the recording is prepared when calling record() which may result in a small delay. NOTE: Assume that this wipes the destination file immediately. | function | No | All | Yes |
-| record | Start recording to file in `path`. Callback is called after recording has started or with error object if an error occurred. | function | No | All | Yes |
-| stop | Stop recording and save the file. Callback is called after recording has stopped or with error object. The recorder is destroyed after calling stop and should no longer be used. | function | No | All | Yes |
-| destroy | Destroy the recorder. Should only be used if a recorder was constructed, and for some reason is now unwanted. Callback is called after the operation has finished. | function | No | All | Yes |
+| record | Start recording to file in `path`. Callback is called after recording has started or with error object if an error occurred. | function | No | All | Yes |
+| stop | Stop recording and save the file. Callback is called after recording has stopped or with error object. The recorder is destroyed after calling stop and should no longer be used. | function | No | All | Yes |
+| destroy | Destroy the recorder. Should only be used if a recorder was constructed, and for some reason is now unwanted. Callback is called after the operation has finished. | function | No | All | Yes |
-## 状态 state - Number (read only)
+## State - Number (read only)
```json
var MediaStates = {
@@ -630,13 +630,13 @@ var MediaStates = {
## Known Issues
-- [ ] Recorder 的 encoder 属性问题: 目前仅支持 aac,待后续底层能力开放增加其他格式。[issue#15](https://github.com/react-native-oh-library/react-native-audio-toolkit/issues/15)
+- [ ] The encoder property of the recorder now only supports the AAC format. Other formats will be supported after the underlying capability opens.[issue#15](https://github.com/react-native-oh-library/react-native-audio-toolkit/issues/15)
## Others
-- Player 的 category、mixWithOthers 属性 HarmonyOS 不支持
+- HarmonyOS does not support the **category** and **mixWithOthers** properties of the player.
-- Recorder 的 quality 属性 HarmonyOS 不支持
+- HarmonyOS does not support the **quality** property of the recorder.
## License
diff --git a/en/react-native-config.md b/en/react-native-config.md
index 83a13a32..f953f15d 100644
--- a/en/react-native-config.md
+++ b/en/react-native-config.md
@@ -16,14 +16,14 @@
## Basic Usage
-在 React Native 应用程序的根目录中创建一个新`.env`文件
+Create an `.env` file in the root directory of the React Native application.
```bash
API_URL=https://myapi.com
GOOGLE_MAPS_API_KEY=abcdefgh
```
-然后从您的应用程序访问那里定义的变量:
+Access the variables defined in the file from your application.
```bash
import Config from "react-native-config";
@@ -32,11 +32,11 @@ Config.API_URL; // 'https://myapi.com'
Config.GOOGLE_MAPS_API_KEY; // 'abcdefgh'
```
-请记住,此模块不会混淆或加密机密以进行打包,因此请勿将敏感密钥存储在`.env`中[基本上不可能阻止用户对移动应用程序机密进行逆向工程](https://rammic.github.io/2015/07/28/hiding-secrets-in-android-apps/),因此请在设计应用程序(和 API)时牢记这一点。
+Note that this module does not obfuscate or encrypt secrets for packaging, so do not store sensitive keys in the `.env` file because it is basically impossible to [prevent users from reverse engineering of mobile application secrets](https://rammic.github.io/2015/07/28/hiding-secrets-in-android-apps/). Keep this in mind when designing applications (and APIs).
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-config Releases](https://github.com/react-native-oh-library/react-native-config/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-config Releases](https://github.com/react-native-oh-library/react-native-config/releases). For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
Go to the project directory and execute the following instruction:
@@ -112,17 +112,17 @@ Open the `harmony` directory of the HarmonyOS project in DevEco Studio.
### 2. Introducing Native Code
-该库仅支持源码形式引入
+This library can be imported only in the form of source code.
-#### 直接链接源码情况说明
+#### Description of Direct Linking to Source Code
-目前 DevEco Studio 不支持通过源码引入外部 module,请按照以下步骤操作,将源码通过操作改成 harmony 工程的内部模块。
+Currently, DevEco Studio does not support the introduction of external modules through source code. Perform the following steps to change the source code to an internal module of the **harmony** project.
-> [!TIP] 源码位于三方库安装路径的 `harmony` 文件夹下。
+> [!TIP] The source code is stored in the **harmony** directory in the installation path of the third-party library.
-把`/node_modules/@react-native-oh-tpl/react-native-config/harmony/`目录下的源码``复制到`harmony`工程根目录下
+Copy the source code `` in the `/node_modules/@react-native-oh-tpl/react-native-config/harmony/` directory to the root directory of the `harmony` project.
-在`harmony`工程根目录的 `build-profile.template.json5`(若存在)和`build-profile.json5` 添加以下模块
+In the root directory of the `harmony` project, add the following modules to `build-profile.template.json5` (if any) and `build-profile.json5`:
```json
modules:[
@@ -182,34 +182,34 @@ ohpm install
Then build and run the code.
-### 多环境
+### Multi-environment Configuration
-将不同环境的配置保存在不同的文件中: `.env.staging`,`.env.production`等等。
-默认情况下,`react-native-config `将从`.env`中读取。最简单的方法是用环境变量告诉它读取什么文件,以命令行中使用 IDE 下的`hvigor.js`的方式(不推荐)。
+Save the configurations of different environments in different files, such as `.env.staging` and `.env.production`.
+By default, `react-native-config` is read from the `.env` file. The simplest way is to use an environment variable to specify the file to be read. It is not recommended to use `hvigor.js` in DevEco Studio to obtain the file.
-例如在`CMD`窗口下
+Example:
-首先从 RN 工程根目录 `cd harmony` 进入 harmony 目录
+Run the `cd harmony` command in the `CMD` window to enter the **harmony** directory from the the RN project root directory.
-然后先停止守护进程:
+Stop all daemons.
```bash
"D:\DevEcoStudio\tools\node\node.exe" "D:\DevEcoStudio\tools\hvigor\bin\hvigorw.js" --stop-daemon-all
```
-\*注意,命令中`node.exe`与`hvigor.js`路径为`DevEco Studio`安装目录下的`tools`目录下,需根据实际情况更改。
+\*Note that the paths of `node.exe` and `hvigor.js` in the command are in the `tools` directory under the DevEco Studio installation directory. You can change them as required.
-然后设置环境变量`ENVFILE`为想要指定的配置文件名(注意: 文件名后不要加空格),并用`hvigor.js`构建工程,例如:
+Set the environment variable `ENVFILE` to the name of the configuration file to be specified (do not add spaces after the file name), and use `hvigor.js` to build a project. For example:
```bash
set ENVFILE=.env.staging&&"D:\DevEcoStudio\tools\node\node.exe" "D:\DevEcoStudio\tools\hvigor\bin\hvigorw.js" --mode module -p module=entry@default -p product=default -p requiredDeviceType=phone assembleHap --analyze=normal --parallel --increm
```
-之后可打开`DevEco Studio`构建运行,但此时为保证所设环境变量与工程构建在同一进程,不可在`DevEco Studio`的终端中以 hvigor 命令构建工程。
+Then, open `DevEco Studio` to build and run the project. To ensure that the configured environment variables and the project are built in the same process, do not run the **hvigor** command in `DevEco Studio` to build the project.
-#### 建立映射
+#### Creating a Mapping
-或者,您可以定义一个映射来将构建与环境文件关联起来,可以在`harmony`工程根目录的`build-profile.json5`中的`products`中的`buildOption`节点下的`arkOptions`子节点中通过增加`buildProfileFields`字段配置映射,字段中以键值对的方式配置,其中 key 值为小写的工程构建类型,value 为该构建类型下所要读取的文件名
+Alternatively, you can add the **buildProfileFields** field in `harmony` > `build-profile.json5` > `products` > `buildOption` > `arkOptions` to define a mapping to associate the build with the environment file. The field is configured in key-value pairs, where **key** indicates the project build type in lowercase and **value** indicates the name of the file to be read under the build type.
```json
"products": [
@@ -246,7 +246,7 @@ Check the release version information in the release address of the third-party
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ------ | --------------------------------------------- | ------ | -------- | ----------- | ----------------- |
-| Config | 类中属性名及其值对应.env 文件中所定义的键值对 | Object | no | Android/iOS | yes |
+| Config | The property name and value in the class correspond to the key-value pair defined in the **.env** file.| Object | no | Android/iOS | yes |
## Known Issues
diff --git a/en/react-native-file-selector.md b/en/react-native-file-selector.md
index 493854b8..f967ae4f 100644
--- a/en/react-native-file-selector.md
+++ b/en/react-native-file-selector.md
@@ -1,5 +1,4 @@
-
-> Template version:v0.2.2
+> Template version: v0.2.2
react-native-file-selector
@@ -17,23 +16,23 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-file-selector Releases](https://github.com/react-native-oh-library/react-native-file-selector/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+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-file-selector Releases](https://github.com/react-native-oh-library/react-native-file-selector/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 (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-file-selector
+npm install @react-native-oh-tpl/react-native-file-selector@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-file-selector
+yarn add @react-native-oh-tpl/react-native-file-selector@file:#
```
@@ -80,7 +79,7 @@ Open the harmony directory of the HarmonyOS project in DevEco Studio.
Currently, two methods are available:
-1. Use the HAR file.(recommended);
+1. (Recommended) Use the HAR file.
2. Directly link to the source code.
Method 1 (recommended): Use the HAR file.
@@ -152,26 +151,26 @@ Check the release version information in the release address of the third-party
FileSelector
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| :--- | ----------- | ---- | -------- | -------- | ------------------ |
-| filter | Filter to sort the files | string | no | All | yes |
-| path | Path of directory | string | no | All | yes |
-| onDone | Function called when file is selected | func | no | All | yes |
-| onCancel | Function called when file selector is closed without selecting any file | func | no | All | yes |
-| title | Title on the toolbar | string | no | Android iOS | no |
-| closeMenu | Color of tint | string | no | Android iOS | no |
-| hiddenFiles | If true it shows hidden files as well | bool | no | Android | no |
-| filterDirectories | Filter should be applied on directories or not | bool | no | Android | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| :---------------- | ------------------------------------------------------------ | ------ | -------- | ----------- | ----------------- |
+| filter | Filter to sort the files | string | no | All | yes |
+| path | Path of directory | string | no | All | yes |
+| onDone | Function called when file is selected | func | no | All | yes |
+| onCancel | Function called when file selector is closed without selecting any file | func | no | All | yes |
+| title | Title on the toolbar | string | no | Android iOS | no |
+| closeMenu | Color of tint | string | no | Android iOS | no |
+| hiddenFiles | If true it shows hidden files as well | bool | no | Android | no |
+| filterDirectories | Filter should be applied on directories or not | bool | no | Android | no |
## API
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| Show | present a fileselector | function | no | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---- | ---------------------- | -------- | -------- | -------- | ----------------- |
+| Show | present a fileselector | function | no | All | yes |
Show
@@ -179,32 +178,32 @@ Check the release version information in the release address of the third-party
Show(filter?: string, path?: string, onDone?: func, onCancel?: func, title?: string, closeMenu?: string, hiddenFiles?: bool, filterDirectories?: bool);
```
-| Name | Description | Type | Required | Platform | HarmonyOS Support |
-| :--- | ----------- | ---- | -------- | -------- | ------------------ |
-| filter | Filter to sort the files | string | no | All | yes |
-| path | Path of directory | string | no | All | yes |
-| onDone | Function called when file is selected | func | no | All | yes |
-| onCancel | Function called when file selector is closed without selecting any file | func | no | All | yes |
-| title | Title on the toolbar | string | no | Android iOS | no |
-| closeMenu | Color of tint | string | no | Android iOS | no |
-| hiddenFiles | If true it shows hidden files as well | bool | no | Android | no |
-| filterDirectories | Filter should be applied on directories or not | bool | no | Android | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| :---------------- | ------------------------------------------------------------ | ------ | -------- | ----------- | ----------------- |
+| filter | Filter to sort the files | string | no | All | yes |
+| path | Path of directory | string | no | All | yes |
+| onDone | Function called when file is selected | func | no | All | yes |
+| onCancel | Function called when file selector is closed without selecting any file | func | no | All | yes |
+| title | Title on the toolbar | string | no | Android iOS | no |
+| closeMenu | Color of tint | string | no | Android iOS | no |
+| hiddenFiles | If true it shows hidden files as well | bool | no | Android | no |
+| filterDirectories | Filter should be applied on directories or not | bool | no | Android | no |
## Known Issues
-- [ ] FileSelector title:harmony issue: [issue#4](https://github.com/react-native-oh-library/react-native-file-selector/issues/4)
-- [ ] FileSelector closeMenu:harmony issue: [issue#5](https://github.com/react-native-oh-library/react-native-file-selector/issues/5)
-- [ ] FileSelector hiddenFiles:harmony issue: [issue#6](https://github.com/react-native-oh-library/react-native-file-selector/issues/6)
-- [ ] FileSelector filterDirectories:harmony issue: [issue#7](https://github.com/react-native-oh-library/react-native-file-selector/issues/7)
+- [ ] FileSelector title: Harmony issue: [issue#4](https://github.com/react-native-oh-library/react-native-file-selector/issues/4)
+- [ ] FileSelector closeMenu: Harmony issue: [issue#5](https://github.com/react-native-oh-library/react-native-file-selector/issues/5)
+- [ ] FileSelector hiddenFiles: Harmony issue: [issue#6](https://github.com/react-native-oh-library/react-native-file-selector/issues/6)
+- [ ] FileSelector filterDirectories: Harmony issue: [issue#7](https://github.com/react-native-oh-library/react-native-file-selector/issues/7)
-- [ ] Show title:harmony issue: [issue#4](https://github.com/react-native-oh-library/react-native-file-selector/issues/4)
-- [ ] Show closeMenu:harmony issue: [issue#5](https://github.com/react-native-oh-library/react-native-file-selector/issues/5)
-- [ ] Show hiddenFiles:harmony issue: [issue#6](https://github.com/react-native-oh-library/react-native-file-selector/issues/6)
-- [ ] Show filterDirectories:harmony issue: [issue#7](https://github.com/react-native-oh-library/react-native-file-selector/issues/7)
+- [ ] Show title: Harmony issue: [issue#4](https://github.com/react-native-oh-library/react-native-file-selector/issues/4)
+- [ ] Show closeMenu: Harmony issue: [issue#5](https://github.com/react-native-oh-library/react-native-file-selector/issues/5)
+- [ ] Show hiddenFiles: Harmony issue: [issue#6](https://github.com/react-native-oh-library/react-native-file-selector/issues/6)
+- [ ] Show filterDirectories: Harmony issue: [issue#7](https://github.com/react-native-oh-library/react-native-file-selector/issues/7)
## Others
## License
-This project is licensed under [Apache License 2.0](https://github.com/prscX/react-native-file-selector/blob/master/LICENSE).
\ No newline at end of file
+This project is licensed under [Apache License 2.0](https://github.com/prscX/react-native-file-selector/blob/master/LICENSE).
diff --git a/en/react-native-image-rotate.md b/en/react-native-image-rotate.md
index 9eb969db..2da9b383 100644
--- a/en/react-native-image-rotate.md
+++ b/en/react-native-image-rotate.md
@@ -160,7 +160,7 @@ Open the harmony directory of the HarmonyOS project in DevEco Studio.
Currently, two methods are available:
-1. Use the HAR file;
+1. Use the HAR file.
2. Directly link to the source code.
Method 1 (recommended): Use the HAR file.
@@ -233,9 +233,9 @@ Check the release version information in the release address of the third-party
> [!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
--- | -- | -- | -- | -- | --
-rotateImage | rotate picture | Function | no | iOS/Android | yes
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------- | -------------- | -------- | -------- | ----------- | ------------------- |
+| rotateImage | rotate picture | Function | no | iOS/Android | yes |
## Known Issues
diff --git a/en/react-native-thumbnail.md b/en/react-native-thumbnail.md
index 64ab7d40..8d7b9545 100644
--- a/en/react-native-thumbnail.md
+++ b/en/react-native-thumbnail.md
@@ -15,32 +15,32 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-thumbnail Releases](https://github.com/react-native-oh-library/react-native-thumbnail/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+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-thumbnail Releases](https://github.com/react-native-oh-library/react-native-thumbnail/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 (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-thumbnail
+npm install @react-native-oh-tpl/react-native-thumbnail@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-thumbnail
+yarn add @react-native-oh-tpl/react-native-thumbnail@file:#
```
The following code shows the basic use scenario of the repository:
-> [!WARNING] The name of the imported repository remains unchanged.
-> [!TIP] the example depend on react-native-image-picker library,see [@react-native-oh-tpl/react-native-image-picker document](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-image-picker.md) to introduce.
+> [!WARNING] The name of the imported repository remains unchanged.
+> [!TIP] The example depends on the react-native-image-picker library, see the [@react-native-oh-tpl/react-native-image-picker document](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-image-picker.md) for introducing.
```js
import React from 'react';
import { StyleSheet, Text, View, TouchableOpacity, Image } from 'react-native';
@@ -70,7 +70,7 @@ export default function ThumbnailExample() {
} else if (result.errorCode === 'others') {
console.log(`Other error: ${result.errorMessage}`);
} else {
- // 检查是否成功获取到视频
+ // Check whether the video is successfully obtained.
if (result && result.assets && result.assets.length > 0) {
const asset = result.assets[0];
if (asset.type.includes('mp4')) {
@@ -93,7 +93,7 @@ export default function ThumbnailExample() {
const openGallery = async () => {
try {
const options = {
- mediaType: 'video', // 修改为只选择视频
+ mediaType: 'video', // Modify mediaType to video.
selectionLimit: 1,
includeExtra: false,
};
@@ -246,13 +246,13 @@ Check the release version information in the release address of the third-party
## API
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| get | Generates a thumbnail for a video file. | function | no | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ---- | --------------------------------------- | -------- | -------- | -------- | ----------------- |
+| get | Generates a thumbnail for a video file. | function | no | All | yes |
## Known Issues
diff --git a/en/react-native-user-agent.md b/en/react-native-user-agent.md
index 2e5f4810..fd4bd07c 100644
--- a/en/react-native-user-agent.md
+++ b/en/react-native-user-agent.md
@@ -18,24 +18,24 @@
## Installation and Usage
-Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-user-agent Releases](https://github.com/react-native-oh-library/react-native-user-agent/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package.
+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-user-agent Releases](https://github.com/react-native-oh-library/react-native-user-agent/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 (#).
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-user-agent
+npm install @react-native-oh-tpl/react-native-user-agent@file:#
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-user-agent
+yarn add @react-native-oh-tpl/react-native-user-agent@file:#
```
@@ -49,13 +49,13 @@ import React, { useState, useEffect } from 'react';
import { View, Text } from 'react-native';
import UserAgent from 'react-native-user-agent';
-// sync method:
+// sync method:
let userAgent: string = UserAgent.getUserAgent();
export default function UserAgentExample() {
const [webViewUserAgent, setWebViewUserAgent] = useState(null);
useEffect(() => {
- // async method:
+ // async method:
UserAgent.getWebViewUserAgent()
.then(webViewUserAgent => {
setWebViewUserAgent(webViewUserAgent);
@@ -73,7 +73,7 @@ export default function UserAgentExample() {
Async method{webViewUserAgent}
- Property:
+ Property: systemName: {UserAgent.systemName}systemVersion: {UserAgent.systemVersion}applicationName: {UserAgent.applicationName}
@@ -178,39 +178,39 @@ Check the release version information in the release address of the third-party
## Properties
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| systemName | System Name | string | no | All | yes |
-| systemVersion | System Version | string | no | All | yes |
-| applicationName | Application Name | string | no | All | yes |
-| applicationVersion | Application Version | string | no | All | yes |
-| buildNumber | Build Number | string | no | All | yes |
-| darwinVersion | Darwin Version | string | no | iOS | no |
-| cfnetworkVersion | Cfnetwork Version | string | no | iOS | no |
-| modelName | Model Name | string | no | iOS | no |
-| deviceName | Device Name | string | no | iOS | no |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------ | ------------------- | ------ | -------- | -------- | ----------------- |
+| systemName | System Name | string | no | All | yes |
+| systemVersion | System Version | string | no | All | yes |
+| applicationName | Application Name | string | no | All | yes |
+| applicationVersion | Application Version | string | no | All | yes |
+| buildNumber | Build Number | string | no | All | yes |
+| darwinVersion | Darwin Version | string | no | iOS | no |
+| cfnetworkVersion | Cfnetwork Version | string | no | iOS | no |
+| modelName | Model Name | string | no | iOS | no |
+| deviceName | Device Name | string | no | iOS | no |
## API
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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 |
-| ---- | ----------- | ---- | -------- | -------- | ------------------ |
-| getUserAgent | Get user agent synchronously | string | no | All | yes |
-| getWebViewUserAgent | Get user agent asynchronously | Promise | no | All | yes |
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ------------------- | ----------------------------- | ------- | -------- | -------- | ----------------- |
+| getUserAgent | Get user agent synchronously | string | no | All | yes |
+| getWebViewUserAgent | Get user agent asynchronously | Promise | no | All | yes |
## Known Issues
## Others
-Depending on HarmonyOS NEXT Developer Beta3 version default UserAgent definition,word ArkWeb VersionCode (ArkWeb version number) has no receive method currently,waiting for completion afterwards.
+Depending on HarmonyOS NEXT Developer Beta3 version default UserAgent definition, word ArkWeb VersionCode (ArkWeb version number) has no receive method currently, waiting for completion afterwards.
## License
-This project is licensed under [The MIT License (MIT)](https://github.com/bebnev/react-native-user-agent/blob/master/LICENSE).
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/bebnev/react-native-user-agent/blob/master/LICENSE).
diff --git a/en/react-native-video-controls.md b/en/react-native-video-controls.md
index b743a8d9..e04fdc6c 100644
--- a/en/react-native-video-controls.md
+++ b/en/react-native-video-controls.md
@@ -96,7 +96,7 @@ export default App;
The HarmonyOS implementation of this library depends on the native code from @react-native-oh-tpl/react-native-video. 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-video to add it to your project.
-If not introduce the library, please refer to [@react-native-oh-tpl/react-native-video document](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-video.md#link) and [lodash document](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/lodash.md) for introducing。After finished installation, please use command `npm list react-native-video` and `npm list lodash` in terminal, and check if the component video version and lodash tool version are correct.
+If the library has not been included, please refer to [@react-native-oh-tpl/react-native-video](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-video.md#link) and [lodash](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/lodash.md) for introducing.After finished installation, please use command `npm list react-native-video` and `npm list lodash` in terminal, and check if the component video version and lodash tool version are correct.
## Constraints
@@ -108,11 +108,11 @@ This document is verified based on the following versions:
## Properties
-> [!TIP] The Platform column indicates the platform where the properties are supported in the original third-party library.
+> [!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] 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] While Name column property navigator is in usage, please refer to this document's others.
+> [!tip] While Name column property navigator is in usage, please refer to this document's others.
| Name | Description | Type | Required | Platform | HarmonyOS Support |
| ---------------------------- | ------------------------------------------------------------ | :----------: | :------: | :---------: | :---------------: |
@@ -151,4 +151,4 @@ This document is verified based on the following versions:
## License
-This project is licensed under [The MIT License (MIT)](https://github.com/itsnubix/react-native-video-controls/blob/master/LICENSE).
\ No newline at end of file
+This project is licensed under [The MIT License (MIT)](https://github.com/itsnubix/react-native-video-controls/blob/master/LICENSE).
--
Gitee
From c6a8db70b02f829672d957dadb3569f9057a77f4 Mon Sep 17 00:00:00 2001
From: sunshinezjb
Date: Thu, 26 Dec 2024 17:12:41 +0800
Subject: [PATCH 2/4] =?UTF-8?q?docs:=20[issues:=20#IBDYPN]=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9react-native-alipay,react-native-audio-toolkits?=
=?UTF-8?q?=E7=AD=89=E5=BA=93=E7=9A=84=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-file-selector.md | 4 ++--
en/react-native-user-agent.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/en/react-native-file-selector.md b/en/react-native-file-selector.md
index f967ae4f..3c5f7128 100644
--- a/en/react-native-file-selector.md
+++ b/en/react-native-file-selector.md
@@ -26,13 +26,13 @@ Go to the project directory and execute the following instruction:
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-file-selector@file:#
+npm install @react-native-oh-tpl/react-native-file-selector
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-file-selector@file:#
+yarn add @react-native-oh-tpl/react-native-file-selector
```
diff --git a/en/react-native-user-agent.md b/en/react-native-user-agent.md
index fd4bd07c..9e378309 100644
--- a/en/react-native-user-agent.md
+++ b/en/react-native-user-agent.md
@@ -29,13 +29,13 @@ Go to the project directory and execute the following instruction:
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-user-agent@file:#
+npm install @react-native-oh-tpl/react-native-user-agent
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-user-agent@file:#
+yarn add @react-native-oh-tpl/react-native-user-agent
```
--
Gitee
From 55de2a9e6d226076ec7f877acc183640cff7cec0 Mon Sep 17 00:00:00 2001
From: sunshinezjb
Date: Thu, 26 Dec 2024 17:19:15 +0800
Subject: [PATCH 3/4] =?UTF-8?q?docs:=20[issues:=20#IBDYPN]=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9react-native-alipay,react-native-audio-toolkits?=
=?UTF-8?q?=E7=AD=89=E5=BA=93=E7=9A=84=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-alipay.md | 4 ++--
en/react-native-thumbnail.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/en/react-native-alipay.md b/en/react-native-alipay.md
index 4ff6ebde..4dcddfe3 100644
--- a/en/react-native-alipay.md
+++ b/en/react-native-alipay.md
@@ -25,13 +25,13 @@ Go to the project directory and execute the following instruction:
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-alipay@file:#
+npm install @react-native-oh-tpl/react-native-alipay
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-alipay@file:#
+yarn add @react-native-oh-tpl/react-native-alipay
```
The following code shows the basic use scenario of the repository:
diff --git a/en/react-native-thumbnail.md b/en/react-native-thumbnail.md
index 8d7b9545..900882c7 100644
--- a/en/react-native-thumbnail.md
+++ b/en/react-native-thumbnail.md
@@ -26,13 +26,13 @@ Go to the project directory and execute the following instruction:
#### **npm**
```bash
-npm install @react-native-oh-tpl/react-native-thumbnail@file:#
+npm install @react-native-oh-tpl/react-native-thumbnail
```
#### **yarn**
```bash
-yarn add @react-native-oh-tpl/react-native-thumbnail@file:#
+yarn add @react-native-oh-tpl/react-native-thumbnail
```
--
Gitee
From b26b60b9febb764bc1b8bd015ae972f779a46a6f Mon Sep 17 00:00:00 2001
From: sunshinezjb
Date: Thu, 26 Dec 2024 19:16:09 +0800
Subject: [PATCH 4/4] =?UTF-8?q?docs:=20[issues:=20#IBDYPN]=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9react-native-alipay,react-native-audio-toolkits?=
=?UTF-8?q?=E7=AD=89=E5=BA=93=E7=9A=84=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
en/react-native-config.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/en/react-native-config.md b/en/react-native-config.md
index f953f15d..cc5260b1 100644
--- a/en/react-native-config.md
+++ b/en/react-native-config.md
@@ -91,7 +91,7 @@ const styles = StyleSheet.create({
## Use Codegen
-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).
+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
--
Gitee