From 6443b4bdd9dcd3edfc41d93a2a1fa18bbf0a2875 Mon Sep 17 00:00:00 2001 From: wangqiuyun <727176064@qq.com> Date: Tue, 16 Dec 2025 09:53:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ID7VS4]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-community-progress-view-capi.md=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E4=B8=AD=E8=8B=B1=E6=96=87=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqiuyun <727176064@qq.com> --- ...eact-native-community-progress-view-capi.md | 16 ++++++++++++---- ...eact-native-community-progress-view-capi.md | 18 ++++++++++++++---- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/en/react-native-community-progress-view-capi.md b/en/react-native-community-progress-view-capi.md index 08ce96b25..24036c470 100644 --- a/en/react-native-community-progress-view-capi.md +++ b/en/react-native-community-progress-view-capi.md @@ -65,10 +65,17 @@ export default function ProgressViewExample() { ## Link -Version >= @react-native-ohos/progress-view@1.4.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.5.0 | No | 0.77 | +| ~1.4.3 | Yes | 0.72 | +| <= 1.4.2-0.0.8@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 + +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. @@ -188,8 +195,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/zh-cn/react-native-community-progress-view-capi.md b/zh-cn/react-native-community-progress-view-capi.md index 18632dfca..972e5ed06 100644 --- a/zh-cn/react-native-community-progress-view-capi.md +++ b/zh-cn/react-native-community-progress-view-capi.md @@ -64,11 +64,19 @@ export default function ProgressViewExample() { ## Link -Version >= @react-native-ohos/progress-view@1.4.3,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------|------------| +| ~1.5.0 | No | 0.77 | +| ~1.4.3 | Yes | 0.72 | +| <= 1.4.2-0.0.8@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -首先需要使用 DevEco Studio 打开项目里的HarmonyOS工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -192,7 +200,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` -### 5.运行 +
+ +## 运行 点击右上角的 `sync` 按钮 -- Gitee