From 0b6f507843fe622ef45248a24c7409ff71e96dcf Mon Sep 17 00:00:00 2001 From: pjie131_ Date: Fri, 12 Dec 2025 15:12:52 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ID7VS4]=20=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=BA=93=E9=80=82=E9=85=8Dcli=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=9C=80=E6=B1=824=E4=B8=AA=E4=B8=89=E6=96=B9=E5=BA=93?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pjie131_ --- en/bam-tech-react-native-image-resizer.md | 18 +++++++---- en/baronha-ting.md | 21 ++++++++----- en/jpush-react-native.md | 21 ++++++++----- en/klarna-platform-colors.md | 22 +++++++++----- en/op-engineering-op-sqlite.md | 32 ++++++++++++++------ en/react-native-amap3d.md | 19 +++++++++--- en/react-native-background-fetch.md | 27 ++++++++++++----- zh-cn/bam-tech-react-native-image-resizer.md | 19 ++++++++---- zh-cn/baronha-ting.md | 17 ++++++++--- zh-cn/jpush-react-native.md | 19 ++++++++---- zh-cn/klarna-platform-colors.md | 22 +++++++++----- zh-cn/op-engineering-op-sqlite.md | 23 +++++++++++--- zh-cn/react-native-amap3d.md | 18 ++++++++--- zh-cn/react-native-background-fetch.md | 24 +++++++++++---- 14 files changed, 212 insertions(+), 90 deletions(-) diff --git a/en/bam-tech-react-native-image-resizer.md b/en/bam-tech-react-native-image-resizer.md index 6299ae1d..00650c98 100644 --- a/en/bam-tech-react-native-image-resizer.md +++ b/en/bam-tech-react-native-image-resizer.md @@ -278,16 +278,21 @@ export default ImageResizerDemo; ## Use Codegen -Version >= @react-native-ohos/react-native-image-resizer@3.0.10, compatible with codegen-lib for generating bridge code. - This library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-image-resizer@3.0.10 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. -Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~3.1.0 | No | 0.77 | +| ~3.0.10 | Yes | 0.72 | +| <= 3.0.9-0.0.4@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -This step provides guidance for manually configuring native dependencies. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. @@ -405,8 +410,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/baronha-ting.md b/en/baronha-ting.md index 26b7e42c..ee19f3f4 100644 --- a/en/baronha-ting.md +++ b/en/baronha-ting.md @@ -81,17 +81,23 @@ export default App; ## Using Codegen -Version >= @react-native-ohos/ting@1.2.3, compatible with codegen-lib for generating bridge code. - -This library has been adapted for `Codegen`. Before use, you need to actively generate the third-party library bridging code. Please refer to the [Codegen Usage Documentation](/en/codegen.md) for details. +This library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/ting@1.2.3 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.3.0 | No | 0.77 | +| ~1.2.3 | Yes | 0.72 | +| <= 1.2.2-0.0.3@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -This step provides guidance for manually configuring native dependencies. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. -First, use DevEco Studio to open the HarmonyOS project `harmony` within your project. +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Add the overrides field to the root `oh-package.json5` @@ -201,8 +207,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Run +## Running Click the `sync` button in the top right corner. diff --git a/en/jpush-react-native.md b/en/jpush-react-native.md index 9f440ddb..9c156c37 100644 --- a/en/jpush-react-native.md +++ b/en/jpush-react-native.md @@ -87,17 +87,23 @@ export default App; ``` ## Use Codegen -Version >= @react-native-ohos/jpush-react-native@3.1.2, compatible with codegen-lib for generating bridge code. - -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). +This library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/jpush-react-native@3.1.2 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~3.2.0 | No | 0.77 | +| ~3.1.2 | Yes | 0.72 | +| <= 3.1.1-0.0.5@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -This step provides guidance for manually configuring native dependencies. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -204,8 +210,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/klarna-platform-colors.md b/en/klarna-platform-colors.md index e6693309..d267f40e 100644 --- a/en/klarna-platform-colors.md +++ b/en/klarna-platform-colors.md @@ -183,18 +183,23 @@ const styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/platform-colors@0.4.1, compatible with codegen-lib for generating bridge code. - -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). +This library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/platform-colors@0.4.1 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. -Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~0.5.0 | No | 0.77 | +| ~0.4.1 | Yes | 0.72 | +| <= 0.4.0-0.0.1@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -This step provides guidance for manually configuring native dependencies. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -314,8 +319,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/op-engineering-op-sqlite.md b/en/op-engineering-op-sqlite.md index dcb9faee..eecc8ead 100644 --- a/en/op-engineering-op-sqlite.md +++ b/en/op-engineering-op-sqlite.md @@ -68,9 +68,10 @@ import { import { open, - type DB + type DB, + Scalar, + HARMONY_DATABASE_PATH } from '@op-engineering/op-sqlite'; -import { HARMONY_DATABASE_PATH } from '@react-native-ohos/op-sqlite'; export default function OpSqliteExample() { @@ -105,12 +106,19 @@ For details, see [Source Repository Document Address](https://ospfranco.notion.s ## Link -Version >= @react-native-ohos/op-sqlite@8.0.3 now supports Autolink without requiring manual configuration(The content that still needs to be manually configured has been marked in the corresponding title), currently only supports 72 frameworks. -Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~14.0.1 | No | 0.77 | +| ~8.0.3 | Yes | 0.72 | +| <= 8.0.2-0.0.3@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -225,7 +233,13 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` -### 5. Create a `package.json` file in the root directory of your IDE project and configure the parameters.(This module always requires manual configuration) +
+ +## Necessary configuration items + +> [!TIP] The content of this module cannot be automatically generated by autolink and must always be manually configured. + +### 1. Create a `package.json` file in the root directory of your IDE project and configure the parameters.(This module always requires manual configuration) ```json { @@ -238,7 +252,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` -### 6. Introducing opSqlitePlugin to ArkTS(This module always requires manual configuration) +### 2. Introducing opSqlitePlugin to ArkTS(This module always requires manual configuration) Open the `entry/hvigorfile.ts` file and add the following code: @@ -256,7 +270,7 @@ export default { } ``` -### 7. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-amap3d.md b/en/react-native-amap3d.md index 7aff0916..2a67b423 100644 --- a/en/react-native-amap3d.md +++ b/en/react-native-amap3d.md @@ -13,7 +13,7 @@

-> [!TIP] [Github address](https://github.com/qiuxiang/react-native-amap3d) +> [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-amap3d) ## Installation and Usage @@ -167,11 +167,19 @@ export default AMapDemo; ## Link -Version >= @react-native-ohos/react-native-amap3d@3.2.6, now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~3.3.0 | No | 0.77 | +| ~3.2.6 | Yes | 0.72 | +| <= 3.2.5@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -367,8 +375,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 6. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-background-fetch.md b/en/react-native-background-fetch.md index 1dabc129..653a3b08 100644 --- a/en/react-native-background-fetch.md +++ b/en/react-native-background-fetch.md @@ -206,18 +206,23 @@ export default App; ## Use Codegen -Version >= @react-native-ohos/react-native-background-fetch@4.2.6, compatible with codegen-lib for generating bridge code. - -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). +This library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-background-fetch@4.2.6 now supports Autolink without requiring manual configuration(The content that still needs to be manually configured has been marked in the corresponding title), currently only supports 72 frameworks. -Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~4.3.0 | No | 0.77 | +| ~4.2.6 | Yes | 0.72 | +| <= 4.2.5-0.0.2@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -This step provides guidance for manually configuring native dependencies. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -334,6 +339,12 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` +
+ +## Necessary configuration items + +> [!TIP] The content of this module cannot be automatically generated by autolink and must always be manually configured. + ### Introducing RNBackgroundFetchExtensionAbility to ArkTS(This module always requires manual configuration) 1. Open'entry/src/main/ets', create a new directory and ArkTS file, and create a new directory and name it WorkSchedulerExtension. In the WorkSchedulerExtension directory, create an ArkTS file and name it WorkSchedulerExtension.ets to implement the delayed task callback interface. @@ -369,7 +380,7 @@ export default class MyWorkSchedulerExtensionAbility extends RNBackgroundFetchEx } ``` -### Running +## Running Click the `sync` button in the upper right corner. diff --git a/zh-cn/bam-tech-react-native-image-resizer.md b/zh-cn/bam-tech-react-native-image-resizer.md index 5976fd47..f85ac81b 100644 --- a/zh-cn/bam-tech-react-native-image-resizer.md +++ b/zh-cn/bam-tech-react-native-image-resizer.md @@ -278,17 +278,23 @@ export default ImageResizerDemo; ## 使用 Codegen -Version >= @react-native-ohos/react-native-image-resizer@3.0.10,已适配codegen-lib生成桥接代码。 - 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-image-resizer@3.0.10,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------|------------| +| ~3.1.0 | No | 0.77 | +| ~3.0.10 | Yes | 0.72 | +| <= 3.0.9-0.0.4@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -404,8 +410,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/baronha-ting.md b/zh-cn/baronha-ting.md index ec71e78f..32daf042 100644 --- a/zh-cn/baronha-ting.md +++ b/zh-cn/baronha-ting.md @@ -81,15 +81,21 @@ export default App; ## 使用 Codegen -Version >= @react-native-ohos/ting@1.2.3,已适配codegen-lib生成桥接代码。 - 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/ting@1.2.3,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------|------------| +| ~1.3.0 | No | 0.77 | +| ~1.2.3 | Yes | 0.72 | +| <= 1.2.2-0.0.3@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` @@ -201,8 +207,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/jpush-react-native.md b/zh-cn/jpush-react-native.md index c84f2f3c..ed75ec41 100644 --- a/zh-cn/jpush-react-native.md +++ b/zh-cn/jpush-react-native.md @@ -87,15 +87,21 @@ export default App; ``` ## 使用 Codegen -Version >= @react-native-ohos/jpush-react-native@3.1.2,已适配codegen-lib生成桥接代码。 - -本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 +本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/jpush-react-native@3.1.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------------|----------------------| +| ~3.2.0 | No | 0.77 | +| ~3.1.2 | Yes | 0.72 | +| <= 3.1.1-0.0.5@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` @@ -206,8 +212,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. 运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/klarna-platform-colors.md b/zh-cn/klarna-platform-colors.md index b0ad3465..2e576fef 100644 --- a/zh-cn/klarna-platform-colors.md +++ b/zh-cn/klarna-platform-colors.md @@ -181,17 +181,23 @@ const styles = StyleSheet.create({ ## 使用 Codegen -Version >= @react-native-ohos/platform-colors@0.4.1,已适配codegen-lib生成桥接代码。 - -本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 +本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/platform-colors@0.4.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------------|----------------------| +| ~0.5.0 | No | 0.77 | +| ~0.4.1 | Yes | 0.72 | +| <= 0.4.0-0.0.1@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -315,7 +321,9 @@ std::vector> PackageProvider::getPackages(Package::Cont } ``` -### 5.运行 +
+ +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/op-engineering-op-sqlite.md b/zh-cn/op-engineering-op-sqlite.md index afc21ffc..21ff5d22 100644 --- a/zh-cn/op-engineering-op-sqlite.md +++ b/zh-cn/op-engineering-op-sqlite.md @@ -118,9 +118,17 @@ export default function OpSqliteExample() { ## Link -Version >= @react-native-ohos/op-sqlite@8.0.3,已支持 Autolink,无需手动配置(仍需手动配置的内容已在对应标题处标记),目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------------|----------------------| +| ~14.0.1 | No | 0.77 | +| ~8.0.3 | Yes | 0.72 | +| <= 8.0.2-0.0.3@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` @@ -246,8 +254,13 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
+ +## 必要的配置项 + +> [!TIP] 该模块的内容无法通过autolink自动生成,始终需要手动配置。 -### 5.在ide的工程根目录创建package.json文件,并配置参数(该模块始终需要手动配置) +### 1.在ide的工程根目录创建package.json文件,并配置参数(该模块始终需要手动配置) ```diff { @@ -262,7 +275,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` -### 6. 在 ArkTs 侧引入 opSqlitePlugin(该模块始终需要手动配置) +### 2. 在 ArkTs 侧引入 opSqlitePlugin(该模块始终需要手动配置) 打开 `entry/hvigorfile.ts`,添加: @@ -281,7 +294,7 @@ export default { } ``` -### 7. 运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-amap3d.md b/zh-cn/react-native-amap3d.md index 121bd4bb..5fc8dd3c 100644 --- a/zh-cn/react-native-amap3d.md +++ b/zh-cn/react-native-amap3d.md @@ -14,7 +14,7 @@

-> [!TIP] [Github address](https://github.com/qiuxiang/react-native-amap3d) +> [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-amap3d) ## 安装与使用 @@ -168,12 +168,19 @@ export default AMapDemo; ## Link +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------------|----------------------| +| ~3.3.0 | No | 0.77 | +| ~3.2.6 | Yes | 0.72 | +| <= 3.2.5@deprecated | No | 0.72 | -Version >= @react-native-ohos/react-native-amap3d@3.2.6,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的HarmonyOS工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -373,8 +380,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 6.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-background-fetch.md b/zh-cn/react-native-background-fetch.md index 71340d31..151a1bd0 100644 --- a/zh-cn/react-native-background-fetch.md +++ b/zh-cn/react-native-background-fetch.md @@ -206,17 +206,23 @@ export default App; ## 使用 Codegen -Version >= @react-native-ohos/react-native-background-fetch@4.2.6,已适配codegen-lib生成桥接代码。 - 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-background-fetch@4.2.6,已支持 Autolink,无需手动配置(仍需手动配置的内容已在对应标题处标记),目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------|------------| +| ~4.3.0 | No | 0.77 | +| ~4.2.6 | Yes | 0.72 | +| <= 4.2.5-0.0.2@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -336,6 +342,12 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` +
+ +## 必要的配置项 + +> [!TIP] 该模块的内容无法通过autolink自动生成,始终需要手动配置。 + ### 在 ArkTs 侧引入 RNBackgroundFetchExtensionAbility(该模块始终需要手动配置) 1. 打开 `entry/src/main/ets`,新建目录及 ArkTS 文件,新建一个目录并命名为 WorkSchedulerExtension。在 WorkSchedulerExtension 目录下,新建一个 ArkTS 文件并命名为 WorkSchedulerExtension.ets,用以实现延迟任务回调接口。 @@ -373,7 +385,7 @@ export default class MyWorkSchedulerExtensionAbility extends RNBackgroundFetchEx } ``` -### 运行 +## 运行 点击右上角的 `sync` 按钮 -- Gitee