From 688cb805ff3c1fcfa84004636d22ed9675d6fd82 Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Wed, 15 Oct 2025 15:00:30 +0800 Subject: [PATCH 1/7] =?UTF-8?q?docs:=20[Issues:=20#ICXJ4Z]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-localize=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 --- en/react-native-localize.md | 13 ++++++++++++- zh-cn/react-native-localize.md | 12 +++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/en/react-native-localize.md b/en/react-native-localize.md index d940c9320..064e20c59 100644 --- a/en/react-native-localize.md +++ b/en/react-native-localize.md @@ -14,6 +14,12 @@ > [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-localize) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-localize`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 3.1.0-0.0.1@deprecated | @react-native-oh-tpl/react-native-localize | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-localize) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-localize/releases) | +| > 3.1.0 | @react-native-ohos/react-native-localize | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-localize) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/releases) | ## Installation and Usage @@ -115,11 +121,16 @@ export default LocalizeDemo; ## Use Codegen +Version > @react-native-ohos/react-native-localize@3.1.0, compatible with codegen-lib for generating bridge code. + 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 -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version > @react-native-ohos/react-native-localize@3.1.0 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-localize@3.1.0-0.0.1@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/zh-cn/react-native-localize.md b/zh-cn/react-native-localize.md index a76cb978f..4ec56a86e 100644 --- a/zh-cn/react-native-localize.md +++ b/zh-cn/react-native-localize.md @@ -14,6 +14,12 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-localize) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-localize`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 3.1.0-0.0.1@deprecated | @react-native-oh-tpl/react-native-localize | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-localize) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-localize/releases) | +| > 3.1.0 | @react-native-ohos/react-native-localize | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-localize) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/releases) | ## 安装与使用 @@ -114,12 +120,16 @@ export default LocalizeDemo; ``` ## 使用 Codegen +Version > @react-native-ohos/react-native-localize@3.1.0,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version > @react-native-ohos/react-native-localize@3.1.0,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-localize@3.1.0-0.0.1@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` -- Gitee From 6517227c52b62d99d34b6ac195b7d94cf33669ae Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Wed, 15 Oct 2025 15:38:53 +0800 Subject: [PATCH 2/7] =?UTF-8?q?docs:=20[Issues:=20#ID21H3]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-orientation-locker=E6=8C=87=E5=AF=BC?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-localize.md | 4 ++-- en/react-native-orientation-locker.md | 16 +++++++++++++--- zh-cn/react-native-localize.md | 4 ++-- zh-cn/react-native-orientation-locker.md | 16 +++++++++++++--- 4 files changed, 30 insertions(+), 10 deletions(-) diff --git a/en/react-native-localize.md b/en/react-native-localize.md index 064e20c59..a456493fb 100644 --- a/en/react-native-localize.md +++ b/en/react-native-localize.md @@ -33,13 +33,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-localize +npm install @react-native-ohos/react-native-localize ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-localize +yarn add @react-native-ohos/react-native-localize ``` diff --git a/en/react-native-orientation-locker.md b/en/react-native-orientation-locker.md index 873262f67..5802d73c8 100644 --- a/en/react-native-orientation-locker.md +++ b/en/react-native-orientation-locker.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-orientation-locker) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-orientation-locker`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 1.7.0-0.0.7@deprecated | @react-native-oh-tpl/react-native-orientation-locker | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-orientation-locker) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-orientation-locker/releases) | +| > 1.7.0 | @react-native-ohos/react-native-orientation-locker | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-orientation-locker Releases](https://github.com/react-native-oh-library/react-native-orientation-locker/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### npm ```bash -npm install @react-native-oh-tpl/react-native-orientation-locker +npm install @react-native-ohos/react-native-orientation-locker ``` #### yarn ```bash -yarn add @react-native-oh-tpl/react-native-orientation-locker +yarn add @react-native-ohos/react-native-orientation-locker ``` @@ -211,7 +218,10 @@ const styles = StyleSheet.create({ ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version > @react-native-ohos/react-native-orientation-locker@1.7.0 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-orientation-locker@1.7.0-0.0.7@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/zh-cn/react-native-localize.md b/zh-cn/react-native-localize.md index 4ec56a86e..b9e11e842 100644 --- a/zh-cn/react-native-localize.md +++ b/zh-cn/react-native-localize.md @@ -33,13 +33,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-localize +npm install @react-native-ohos/react-native-localize ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-localize +yarn add @react-native-ohos/react-native-localize ``` diff --git a/zh-cn/react-native-orientation-locker.md b/zh-cn/react-native-orientation-locker.md index 45394872b..26d232e65 100644 --- a/zh-cn/react-native-orientation-locker.md +++ b/zh-cn/react-native-orientation-locker.md @@ -14,6 +14,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-orientation-locker) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-orientation-locker`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 1.7.0-0.0.7@deprecated | @react-native-oh-tpl/react-native-orientation-locker | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-orientation-locker) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-orientation-locker/releases) | +| > 1.7.0 | @react-native-ohos/react-native-orientation-locker | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-library/react-native-orientation-locker Releases](https://github.com/react-native-oh-library/react-native-orientation-locker/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -26,13 +33,13 @@ #### npm ```bash -npm install @react-native-oh-tpl/react-native-orientation-locker +npm install @react-native-ohos/react-native-orientation-locker ``` #### yarn ```bash -yarn add @react-native-oh-tpl/react-native-orientation-locker +yarn add @react-native-ohos/react-native-orientation-locker ``` @@ -213,7 +220,10 @@ const styles = StyleSheet.create({ ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version > @react-native-ohos/react-native-orientation-locker@1.7.0,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-orientation-locker@1.7.0-0.0.7@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` -- Gitee From 99fa3e7798b9581506b64dfc20495e68256a3914 Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Wed, 15 Oct 2025 15:51:16 +0800 Subject: [PATCH 3/7] =?UTF-8?q?docs:=20[Issues:=20#ID21H9]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-webview=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 --- en/react-native-webview.md | 16 +++++++++++++--- zh-cn/react-native-webview.md | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/en/react-native-webview.md b/en/react-native-webview.md index 6e3bdd197..874cb57b2 100644 --- a/en/react-native-webview.md +++ b/en/react-native-webview.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-webview) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-webview`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 13.10.4@deprecated | @react-native-oh-tpl/react-native-webview | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-webview) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-webview/releases) | +| > 13.10.4 | @react-native-ohos/react-native-webview | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-webview) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/releases) | + ## Installation and Usage @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-webview +npm install @react-native-ohos/react-native-webview ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-webview +yarn add @react-native-ohos/react-native-webview ``` @@ -54,7 +61,10 @@ export default function WebViewDemo() { ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version > @react-native-ohos/react-native-webview@13.10.4 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-webview@13.10.4@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index 5ba3125d2..209f3d711 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -14,6 +14,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-webview) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-webview`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 13.10.4@deprecated | @react-native-oh-tpl/react-native-webview | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-webview) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-webview/releases) | +| > 13.10.4 | @react-native-ohos/react-native-webview | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-webview) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-webview Releases](https://github.com/react-native-oh-library/react-native-webview/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -26,13 +33,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-webview +npm install @react-native-ohos/react-native-webview ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-webview +yarn add @react-native-ohos/react-native-webview ``` @@ -53,7 +60,10 @@ export default function WebViewDemo() { ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version > @react-native-ohos/react-native-webview@13.10.4,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-webview@13.10.4@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` -- Gitee From 5e60c05a0d9d7f043452fd5f47075d0301fad41e Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Thu, 16 Oct 2025 19:31:12 +0800 Subject: [PATCH 4/7] =?UTF-8?q?docs:=20[Issues:=20#ICXJ4Z]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-fs=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-fs.md | 6 +++++- zh-cn/react-native-fs.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/en/react-native-fs.md b/en/react-native-fs.md index 14e63b716..bd89004fa 100644 --- a/en/react-native-fs.md +++ b/en/react-native-fs.md @@ -9,7 +9,7 @@ This project is based on [react-native-fs@2.20.0](https://github.com/itinance/re | Version | Package Name | Repository | Release | | --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | <= 2.20.0-0.1.14@deprecated | @react-native-oh-tpl/react-native-fs | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-fs) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-fs/releases) | -| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-fs/releases) | +| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | ## 1. Installation and Usage @@ -117,6 +117,10 @@ export default App; ``` ## 2. Manual Link +Version >= @react-native-ohos/react-native-fs@2.20.2 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version < @react-native-ohos/react-native-fs@2.20.2,Version <= @react-native-oh-tpl/react-native-fs@2.20.0-0.1.14@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. This step provides guidance for manually configuring native dependencies. diff --git a/zh-cn/react-native-fs.md b/zh-cn/react-native-fs.md index c60ea9c24..eaf15c40c 100644 --- a/zh-cn/react-native-fs.md +++ b/zh-cn/react-native-fs.md @@ -9,7 +9,7 @@ | Version | Package Name | Repository | Release | | --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | <= 2.20.0-0.1.14@deprecated | @react-native-oh-tpl/react-native-fs | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-fs) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-fs/releases) | -| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-fs/releases) | +| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | ## 1. 安装与使用 @@ -117,6 +117,10 @@ export default App; ``` ## 2. Manual Link +Version >= @react-native-ohos/react-native-fs@2.20.2,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version < @react-native-ohos/react-native-fs@2.20.2,Version <= @react-native-oh-tpl/react-native-fs@2.20.0-0.1.14@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 此步骤为手动配置原生依赖项的指导。 -- Gitee From 2d9e70f290b1279ba0f995d4bab0ac505307aa73 Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Tue, 21 Oct 2025 14:09:56 +0800 Subject: [PATCH 5/7] =?UTF-8?q?docs:=20[Issues:=20#ICXJ4Z]=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=82=EF=BC=8C=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 --- en/lottie-react-native.md | 16 +++++++++++++--- en/react-native-async-storage-async-storage.md | 16 +++++++++++++--- en/react-native-blob-util.md | 18 +++++++++++++++--- en/react-native-cameraroll.md | 18 +++++++++++++++--- en/react-native-community-netinfo.md | 16 +++++++++++++--- en/react-native-linear-gradient.md | 5 +++++ en/react-native-sound.md | 16 +++++++++++++--- zh-cn/lottie-react-native.md | 16 +++++++++++++--- ...react-native-async-storage-async-storage.md | 16 +++++++++++++--- zh-cn/react-native-blob-util.md | 17 ++++++++++++++--- zh-cn/react-native-cameraroll.md | 18 +++++++++++++++--- zh-cn/react-native-community-netinfo.md | 16 +++++++++++++--- zh-cn/react-native-linear-gradient.md | 5 +++++ zh-cn/react-native-sound.md | 16 +++++++++++++--- 14 files changed, 173 insertions(+), 36 deletions(-) diff --git a/en/lottie-react-native.md b/en/lottie-react-native.md index 36816007a..cc0dc335f 100644 --- a/en/lottie-react-native.md +++ b/en/lottie-react-native.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/lottie-react-native) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/lottie-react-native`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 6.4.1-0.1.17@deprecated | @react-native-oh-tpl/lottie-react-native | [Github(deprecated)](https://github.com/react-native-oh-library/lottie-react-native) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | +| >= 6.4.2 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/lottie-react-native +npm install @react-native-ohos/lottie-react-native ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/lottie-react-native +yarn add @react-native-ohos/lottie-react-native ``` @@ -66,7 +73,10 @@ export default App; ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/lottie-react-native@6.4.2 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-async-storage-async-storage.md b/en/react-native-async-storage-async-storage.md index 795d63dc2..272e2fde3 100644 --- a/en/react-native-async-storage-async-storage.md +++ b/en/react-native-async-storage-async-storage.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/async-storage) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/async-storage`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 1.21.0-0.2.2@deprecated | @react-native-oh-tpl/async-storage | [Github(deprecated)](https://github.com/react-native-oh-library/async-storage) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/async-storage/releases) | +| >= 1.21.1 | @react-native-ohos/async-storage | [GitCode](https://gitcode.com/openharmony-sig/rntpc_async-storage) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/async-storage Releases](https://github.com/react-native-oh-library/async-storage/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/async-storage +npm install @react-native-ohos/async-storage ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/async-storage +yarn add @react-native-ohos/async-storage ``` @@ -111,7 +118,10 @@ export default function App() { ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/async-storage@1.21.1 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/async-storage@1.21.0-0.2.2@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-blob-util.md b/en/react-native-blob-util.md index 105a5ca96..23f2309d7 100644 --- a/en/react-native-blob-util.md +++ b/en/react-native-blob-util.md @@ -15,6 +15,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-blob-util) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-blob-util`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 0.19.7@deprecated | @react-native-oh-tpl/react-native-blob-util | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-blob-util) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-blob-util/releases) | +| >= 0.19.8 | @react-native-ohos/react-native-blob-util | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/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. @@ -28,13 +35,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-blob-util +npm install @react-native-ohos/react-native-blob-util ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-blob-util +yarn add @react-native-ohos/react-native-blob-util ``` @@ -393,11 +400,16 @@ const styles = StyleSheet.create({ ## Use Codegen +Version >= @react-native-ohos/react-native-blob-util@0.19.8, 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). ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/react-native-blob-util@0.19.8 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-cameraroll.md b/en/react-native-cameraroll.md index 75f672d9f..4878037e8 100644 --- a/en/react-native-cameraroll.md +++ b/en/react-native-cameraroll.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-cameraroll) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/camera-roll`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 7.8.3-0.1.5@deprecated | @react-native-oh-tpl/camera-roll | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-cameraroll) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-cameraroll/releases) | +| >= 7.8.4 | @react-native-ohos/camera-roll | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-cameraroll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/camera-roll +npm install @react-native-ohos/camera-roll ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/camera-roll +yarn add @react-native-ohos/camera-roll ``` @@ -66,11 +73,16 @@ export default function App() { ## Use Codegen +Version >= @react-native-ohos/camera-roll@7.8.4, 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). ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/camera-roll@7.8.4 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/camera-roll@7.8.3-0.1.5@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-community-netinfo.md b/en/react-native-community-netinfo.md index 4ef3f260f..578ab8232 100644 --- a/en/react-native-community-netinfo.md +++ b/en/react-native-community-netinfo.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-netinfo) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/netinfo`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 11.1.0-0.0.8@deprecated | @react-native-oh-tpl/netinfo | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-netinfo) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-netinfo/releases) | +| >= 11.1.1 | @react-native-ohos/netinfo | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/netinfo +npm install @react-native-ohos/netinfo ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/netinfo +yarn add @react-native-ohos/netinfo ``` @@ -75,7 +82,10 @@ export default App; ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/netinfo@11.1.1 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/netinfo@11.1.0-0.0.8@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-linear-gradient.md b/en/react-native-linear-gradient.md index e28008890..7e66d3a06 100644 --- a/en/react-native-linear-gradient.md +++ b/en/react-native-linear-gradient.md @@ -90,6 +90,11 @@ var styles = StyleSheet.create({ ## 2. Manual Link +Version >= @react-native-ohos/react-native-linear-gradient@3.0.2 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version < @react-native-ohos/react-native-linear-gradient@3.0.2,Version <= @react-native-oh-tpl/react-native-linear-gradient@3.0.0-0.5.0@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. + This step provides guidance for manually configuring native dependencies. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/en/react-native-sound.md b/en/react-native-sound.md index baf473a6d..2548446c1 100644 --- a/en/react-native-sound.md +++ b/en/react-native-sound.md @@ -14,6 +14,13 @@ > [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-sound) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-sound`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 0.11.2-0.0.13@deprecated | @react-native-oh-tpl/react-native-sound | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-sound) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-sound/releases) | +| >= 0.11.3 | @react-native-ohos/react-native-sound | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-sound) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-sound/releases) | + ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-oh-library/react-native-sound Releases](https://github.com/react-native-oh-library/react-native-sound/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. @@ -27,13 +34,13 @@ Go to the project directory and execute the following instruction: #### npm ```bash -npm install @react-native-oh-tpl/react-native-sound +npm install @react-native-ohos/react-native-sound ``` #### yarn ```bash -yarn add @react-native-oh-tpl/react-native-sound +yarn add @react-native-ohos/react-native-sound ``` @@ -157,7 +164,10 @@ export default SoundDemo; ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/react-native-sound@0.11.3 now supports Autolink without requiring manual configuration. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-sound@0.11.2-0.0.13@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. diff --git a/zh-cn/lottie-react-native.md b/zh-cn/lottie-react-native.md index 766a4addf..6ad9539c3 100644 --- a/zh-cn/lottie-react-native.md +++ b/zh-cn/lottie-react-native.md @@ -14,6 +14,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/lottie-react-native) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/lottie-react-native`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 6.4.1-0.1.17@deprecated | @react-native-oh-tpl/lottie-react-native | [Github(deprecated)](https://github.com/react-native-oh-library/lottie-react-native) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | +| >= 6.4.2 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -25,13 +32,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/lottie-react-native +npm install @react-native-ohos/lottie-react-native ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/lottie-react-native +yarn add @react-native-ohos/lottie-react-native ``` @@ -64,7 +71,10 @@ export default App; ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/lottie-react-native@6.4.2,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` diff --git a/zh-cn/react-native-async-storage-async-storage.md b/zh-cn/react-native-async-storage-async-storage.md index 11572d4b8..5b9c27d63 100644 --- a/zh-cn/react-native-async-storage-async-storage.md +++ b/zh-cn/react-native-async-storage-async-storage.md @@ -15,6 +15,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/async-storage) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/async-storage`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 1.21.0-0.2.2@deprecated | @react-native-oh-tpl/async-storage | [Github(deprecated)](https://github.com/react-native-oh-library/async-storage) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/async-storage/releases) | +| >= 1.21.1 | @react-native-ohos/async-storage | [GitCode](https://gitcode.com/openharmony-sig/rntpc_async-storage) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/async-storage Releases](https://github.com/react-native-oh-library/async-storage/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -26,13 +33,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/async-storage +npm install @react-native-ohos/async-storage ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/async-storage +yarn add @react-native-ohos/async-storage ``` @@ -109,7 +116,10 @@ export default function App() { ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/async-storage@1.21.1,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/async-storage@1.21.0-0.2.2@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` diff --git a/zh-cn/react-native-blob-util.md b/zh-cn/react-native-blob-util.md index e1ee142c2..74b235c71 100644 --- a/zh-cn/react-native-blob-util.md +++ b/zh-cn/react-native-blob-util.md @@ -15,6 +15,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-blob-util) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-blob-util`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 0.19.7@deprecated | @react-native-oh-tpl/react-native-blob-util | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-blob-util) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-blob-util/releases) | +| >= 0.19.8 | @react-native-ohos/react-native-blob-util | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -26,13 +33,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-blob-util +npm install @react-native-ohos/react-native-blob-util ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-blob-util +yarn add @react-native-ohos/react-native-blob-util ``` @@ -390,12 +397,16 @@ const styles = StyleSheet.create({ ``` ## 使用 Codegen +Version >= @react-native-ohos/react-native-blob-util@0.19.8,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/react-native-blob-util@0.19.8,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` diff --git a/zh-cn/react-native-cameraroll.md b/zh-cn/react-native-cameraroll.md index 595689637..ada6302bd 100644 --- a/zh-cn/react-native-cameraroll.md +++ b/zh-cn/react-native-cameraroll.md @@ -14,6 +14,13 @@ > [!Tip] [Github 地址](https://github.com/react-native-oh-library/react-native-cameraroll) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/camera-roll`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 7.8.3-0.1.5@deprecated | @react-native-oh-tpl/camera-roll | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-cameraroll) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-cameraroll/releases) | +| >= 7.8.4 | @react-native-ohos/camera-roll | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-cameraroll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -25,13 +32,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/camera-roll +npm install @react-native-ohos/camera-roll ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/camera-roll +yarn add @react-native-ohos/camera-roll ``` @@ -64,11 +71,16 @@ export default function App() { ## 使用 Codegen +Version >= @react-native-ohos/camera-roll@7.8.4,已适配codegen-lib生成桥接代码。 + 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/camera-roll@7.8.4,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/camera-roll@7.8.3-0.1.5@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` diff --git a/zh-cn/react-native-community-netinfo.md b/zh-cn/react-native-community-netinfo.md index 733bc4120..540da5686 100644 --- a/zh-cn/react-native-community-netinfo.md +++ b/zh-cn/react-native-community-netinfo.md @@ -14,6 +14,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-netinfo) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/netinfo`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 11.1.0-0.0.8@deprecated | @react-native-oh-tpl/netinfo | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-netinfo) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-netinfo/releases) | +| >= 11.1.1 | @react-native-ohos/netinfo | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -25,13 +32,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/netinfo +npm install @react-native-ohos/netinfo ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/netinfo +yarn add @react-native-ohos/netinfo ``` @@ -73,7 +80,10 @@ export default App; ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/netinfo@11.1.1,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/netinfo@11.1.0-0.0.8@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` diff --git a/zh-cn/react-native-linear-gradient.md b/zh-cn/react-native-linear-gradient.md index 6da3ab669..487762993 100644 --- a/zh-cn/react-native-linear-gradient.md +++ b/zh-cn/react-native-linear-gradient.md @@ -90,6 +90,11 @@ var styles = StyleSheet.create({ ## 2. Manual Link +Version >= @react-native-ohos/react-native-linear-gradient@3.0.2,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version < @react-native-ohos/react-native-linear-gradient@3.0.2,Version <= @react-native-oh-tpl/react-native-linear-gradient@3.0.0-0.5.0@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 + 此步骤为手动配置原生依赖项的指导。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 diff --git a/zh-cn/react-native-sound.md b/zh-cn/react-native-sound.md index 5c2909a99..9bff7d55d 100644 --- a/zh-cn/react-native-sound.md +++ b/zh-cn/react-native-sound.md @@ -14,6 +14,13 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-sound) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-sound`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 0.11.2-0.0.13@deprecated | @react-native-oh-tpl/react-native-sound | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-sound) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-sound/releases) | +| >= 0.11.3 | @react-native-ohos/react-native-sound | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-sound) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-sound/releases) | + ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-library/react-native-sound Releases](https://github.com/react-native-oh-library/react-native-sound/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -25,13 +32,13 @@ #### npm ```bash -npm install @react-native-oh-tpl/react-native-sound +npm install @react-native-ohos/react-native-sound ``` #### yarn ```bash -yarn add @react-native-oh-tpl/react-native-sound +yarn add @react-native-ohos/react-native-sound ``` @@ -155,7 +162,10 @@ export default SoundDemo; ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/react-native-sound@0.11.3,已支持 Autolink,无需手动配置。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-sound@0.11.2-0.0.13@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` -- Gitee From b56eaad9f26173efe0360de73991583d6de2b97c Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Wed, 22 Oct 2025 20:01:57 +0800 Subject: [PATCH 6/7] =?UTF-8?q?docs:=20[Issues:=20#ICXJ4Z]=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=82=EF=BC=8C=E6=96=87=E6=A1=A3=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/lottie-react-native.md | 12 ++++++------ en/react-native-async-storage-async-storage.md | 10 +++++----- en/react-native-blob-util.md | 8 ++++---- en/react-native-cameraroll.md | 8 ++++---- en/react-native-community-netinfo.md | 10 +++++----- en/react-native-localize.md | 8 ++++---- en/react-native-orientation-locker.md | 6 +++--- en/react-native-sound.md | 6 +++--- en/react-native-webview.md | 12 ++++++------ zh-cn/lottie-react-native.md | 12 ++++++------ zh-cn/react-native-async-storage-async-storage.md | 10 +++++----- zh-cn/react-native-blob-util.md | 8 ++++---- zh-cn/react-native-cameraroll.md | 8 ++++---- zh-cn/react-native-community-netinfo.md | 10 +++++----- zh-cn/react-native-localize.md | 8 ++++---- zh-cn/react-native-orientation-locker.md | 6 +++--- zh-cn/react-native-sound.md | 6 +++--- zh-cn/react-native-webview.md | 12 ++++++------ 18 files changed, 80 insertions(+), 80 deletions(-) diff --git a/en/lottie-react-native.md b/en/lottie-react-native.md index cc0dc335f..52dd26c2e 100644 --- a/en/lottie-react-native.md +++ b/en/lottie-react-native.md @@ -23,7 +23,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/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-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/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: @@ -104,7 +104,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/lottie-react-native": "file:../../node_modules/@react-native-oh-tpl/lottie-react-native/harmony/lottie.har" + "@react-native-ohos/lottie-react-native": "file:../../node_modules/@react-native-ohos/lottie-react-native/harmony/lottie.har" } ``` @@ -143,7 +143,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/lottie-react-native/src/main/cpp" ./lottie) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/lottie-react-native/src/main/cpp" ./lottie) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -183,7 +183,7 @@ Open `entry/src/main/ets/RNPackagesFactory.ts` and add: ```diff ... -+ import {LottieAnimationViewPackage} from '@react-native-oh-tpl/lottie-react-native/ts'; ++ import {LottieAnimationViewPackage} from '@react-native-ohos/lottie-react-native/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -198,7 +198,7 @@ Find `function buildCustomRNComponent()`, which is usually located in `entry/src ```diff ... -+ import { LottieAnimationView, LOTTIE_TYPE } from "@react-native-oh-tpl/lottie-react-native" ++ import { LottieAnimationView, LOTTIE_TYPE } from "@react-native-ohos/lottie-react-native" @Builder export function buildCustomRNComponent(ctx: ComponentBuilderContext) { @@ -246,7 +246,7 @@ Then build and run the code. 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/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) ### Permission Requirements diff --git a/en/react-native-async-storage-async-storage.md b/en/react-native-async-storage-async-storage.md index 272e2fde3..aad2459a7 100644 --- a/en/react-native-async-storage-async-storage.md +++ b/en/react-native-async-storage-async-storage.md @@ -23,7 +23,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/async-storage Releases](https://github.com/react-native-oh-library/async-storage/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-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/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: @@ -150,7 +150,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/async-storage": "file:../../node_modules/@react-native-oh-tpl/async-storage/harmony/async_storage.har" + "@react-native-ohos/async-storage": "file:../../node_modules/@react-native-ohos/async-storage/harmony/async_storage.har" } ``` @@ -189,7 +189,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/async-storage/src/main/cpp" ./async-storage) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/async-storage/src/main/cpp" ./async-storage) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -230,7 +230,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import {AsyncStoragePackage} from '@react-native-oh-tpl/async-storage/ts'; ++ import {AsyncStoragePackage} from '@react-native-ohos/async-storage/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -259,7 +259,7 @@ Then build and run the code. To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. -Check the release version information in the release address of the third-party library: [@react-native-oh-library/async-storage Releases](https://github.com/react-native-oh-library/async-storage/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) ## APIs diff --git a/en/react-native-blob-util.md b/en/react-native-blob-util.md index 23f2309d7..49fcd3d86 100644 --- a/en/react-native-blob-util.md +++ b/en/react-native-blob-util.md @@ -24,7 +24,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/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-ohos/react-native-blob-util Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/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: @@ -440,7 +440,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-blob-util": "file:../../node_modules/@react-native-oh-tpl/react-native-blob-util/harmony/blobUtil.har" + "@react-native-ohos/react-native-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" } ``` @@ -462,7 +462,7 @@ Method 2: Directly link to the source code. Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: ```diff -+ import {BlobUtilPackage} from '@react-native-oh-tpl/react-native-blob-util/ts'; ++ import {BlobUtilPackage} from '@react-native-ohos/react-native-blob-util/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -490,7 +490,7 @@ Then build and run the code. 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-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-blob-util Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) ## APIs diff --git a/en/react-native-cameraroll.md b/en/react-native-cameraroll.md index 4878037e8..9ec808c04 100644 --- a/en/react-native-cameraroll.md +++ b/en/react-native-cameraroll.md @@ -23,7 +23,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-cameraroll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/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-ohos/react-native-cameraroll Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/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: @@ -110,7 +110,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/camera-roll": "file:../../node_modules/@react-native-oh-tpl/camera-roll/harmony/camera_roll.har" + "@react-native-ohos/camera-roll": "file:../../node_modules/@react-native-ohos/camera-roll/harmony/camera_roll.har" } ``` @@ -133,7 +133,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import { CameraRollPackage } from '@react-native-oh-tpl/camera-roll/ts'; ++ import { CameraRollPackage } from '@react-native-ohos/camera-roll/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -162,7 +162,7 @@ Then build and run the code. 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/camera-roll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/camera-roll Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/releases) ## Static Methods diff --git a/en/react-native-community-netinfo.md b/en/react-native-community-netinfo.md index 578ab8232..396225505 100644 --- a/en/react-native-community-netinfo.md +++ b/en/react-native-community-netinfo.md @@ -23,7 +23,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/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-ohos/netinfo Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/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: @@ -113,7 +113,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/netinfo": "file:../../node_modules/@react-native-oh-tpl/netinfo/harmony/netinfo.har" + "@react-native-ohos/netinfo": "file:../../node_modules/@react-native-ohos/netinfo/harmony/netinfo.har" } ``` @@ -152,7 +152,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/netinfo/src/main/cpp" ./netinfo) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/netinfo/src/main/cpp" ./netinfo) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -195,7 +195,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import {NetInfoPackage} from '@react-native-oh-tpl/netinfo/ts'; ++ import {NetInfoPackage} from '@react-native-ohos/netinfo/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -224,7 +224,7 @@ Then build and run the code. To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. -Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/netinfo Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/releases) ## Properties diff --git a/en/react-native-localize.md b/en/react-native-localize.md index a456493fb..2c05a692c 100644 --- a/en/react-native-localize.md +++ b/en/react-native-localize.md @@ -23,7 +23,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-localize Releases](https://github.com/react-native-oh-library/react-native-localize/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-ohos/react-native-localize Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/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: @@ -159,7 +159,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-localize": "file:../../node_modules/@react-native-oh-tpl/react-native-localize/harmony/rn_localize.har" + "@react-native-ohos/react-native-localize": "file:../../node_modules/@react-native-ohos/react-native-localize/harmony/rn_localize.har" } ``` @@ -183,7 +183,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import { RNLocalizePackage } from '@react-native-oh-tpl/react-native-localize/ts'; ++ import { RNLocalizePackage } from '@react-native-ohos/react-native-localize/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -212,7 +212,7 @@ Then build and run the code. 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-native-localize Releases](https://github.com/react-native-oh-library/react-native-localize/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-localize Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/releases) ## API diff --git a/en/react-native-orientation-locker.md b/en/react-native-orientation-locker.md index 5802d73c8..613581bbb 100644 --- a/en/react-native-orientation-locker.md +++ b/en/react-native-orientation-locker.md @@ -249,7 +249,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-orientation-locker":"file:../../node_modules/@react-native-oh-tpl/react-native-orientation-locker/harmony/orientation_locker.har" + "@react-native-ohos/react-native-orientation-locker":"file:../../node_modules/@react-native-ohos/react-native-orientation-locker/harmony/orientation_locker.har" } ``` @@ -271,7 +271,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-orientation-locker":"file:../../node_modules/@react-native-oh-tpl/react-native-orientation-locker/harmony/orientation_locker" + "@react-native-ohos/react-native-orientation-locker":"file:../../node_modules/@react-native-ohos/react-native-orientation-locker/harmony/orientation_locker" } ``` @@ -288,7 +288,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import { RNOrientationLockerPackage } from '@react-native-oh-tpl/react-native-orientation-locker/ts'; ++ import { RNOrientationLockerPackage } from '@react-native-ohos/react-native-orientation-locker/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ new SamplePackage(ctx), diff --git a/en/react-native-sound.md b/en/react-native-sound.md index 2548446c1..33caf7e5e 100644 --- a/en/react-native-sound.md +++ b/en/react-native-sound.md @@ -195,7 +195,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-sound": "file:../../node_modules/@react-native-oh-tpl/react-native-sound/harmony/sound.har" + "@react-native-ohos/react-native-sound": "file:../../node_modules/@react-native-ohos/react-native-sound/harmony/sound.har" } ``` @@ -234,7 +234,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-sound/src/main/cpp" ./sound) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-sound/src/main/cpp" ./sound) # RNOH_BEGIN: manual_package_linking_1 add_library(rnoh_app SHARED @@ -273,7 +273,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import { SoundPackage } from '@react-native-oh-tpl/react-native-sound/ts'; ++ import { SoundPackage } from '@react-native-ohos/react-native-sound/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ diff --git a/en/react-native-webview.md b/en/react-native-webview.md index 874cb57b2..16733718a 100644 --- a/en/react-native-webview.md +++ b/en/react-native-webview.md @@ -24,7 +24,7 @@ This third-party library has been migrated to Gitcode and is now available for d ## Installation and Usage -Find the matching version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-webview Releases](https://github.com/react-native-oh-library/react-native-webview /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 the third-party library: [@react-native-ohos/react-native-webview Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/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: @@ -93,7 +93,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-webview": "file:../../node_modules/@react-native-oh-tpl/react-native-webview/harmony/rn_webview.har" + "@react-native-ohos/react-native-webview": "file:../../node_modules/@react-native-ohos/react-native-webview/harmony/rn_webview.har" } ``` @@ -133,7 +133,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULE_DIR}/@react-native-oh-tpl/react-native-webview/src/main/cpp" ./webview) ++ add_subdirectory("${OH_MODULE_DIR}/@react-native-ohos/react-native-webview/src/main/cpp" ./webview) # RNOH_END: manual_package_linking_1 @@ -174,7 +174,7 @@ std::vector> PackageProvider::getPackages(Package::Cont Find `function buildCustomRNComponent()`, which is usually located in `entry/src/main/ets/pages/index.ets` or `entry/src/main/ets/rn/LoadBundle.ets`, and add the following code: ```diff -+ import { WebView, WEB_VIEW } from "@react-native-oh-tpl/react-native-webview" ++ import { WebView, WEB_VIEW } from "@react-native-ohos/react-native-webview" @Builder function buildCustomComponent(ctx: ComponentBuilderContext) { @@ -209,7 +209,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff import type {RNPackageContext, RNPackage} from 'rnoh/ts'; import {SamplePackage} from 'rnoh-sample-package/ts'; -+ import { WebViewPackage } from '@react-native-oh-tpl/react-native-webview/ts'; ++ import { WebViewPackage } from '@react-native-ohos/react-native-webview/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -238,7 +238,7 @@ Then build and run the code. 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-native-webview Releases](https://github.com/react-native-oh-library/react-native-webview/releases) +Check the release version information in the release address of the third-party library: [ @react-native-ohos/react-native-webview Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/releases) ## Properties > [!WARNING] The "ignoreSilentHardwareSwitch" needs to be set to "true" for the web page to have sound when playing. diff --git a/zh-cn/lottie-react-native.md b/zh-cn/lottie-react-native.md index 6ad9539c3..d0ce4e16f 100644 --- a/zh-cn/lottie-react-native.md +++ b/zh-cn/lottie-react-native.md @@ -23,7 +23,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -105,7 +105,7 @@ Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated 暂 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/lottie-react-native": "file:../../node_modules/@react-native-oh-tpl/lottie-react-native/harmony/lottie.har" + "@react-native-ohos/lottie-react-native": "file:../../node_modules/@react-native-ohos/lottie-react-native/harmony/lottie.har" } ``` @@ -144,7 +144,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/lottie-react-native/src/main/cpp" ./lottie) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/lottie-react-native/src/main/cpp" ./lottie) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -184,7 +184,7 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... -+ import {LottieAnimationViewPackage} from '@react-native-oh-tpl/lottie-react-native/ts'; ++ import {LottieAnimationViewPackage} from '@react-native-ohos/lottie-react-native/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -199,7 +199,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ```diff ... -+ import { LottieAnimationView, LOTTIE_TYPE } from "@react-native-oh-tpl/lottie-react-native" ++ import { LottieAnimationView, LOTTIE_TYPE } from "@react-native-ohos/lottie-react-native" @Builder export function buildCustomRNComponent(ctx: ComponentBuilderContext) { @@ -247,7 +247,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/lottie-react-native Releases](https://github.com/react-native-oh-library/lottie-react-native/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) ### 权限要求 diff --git a/zh-cn/react-native-async-storage-async-storage.md b/zh-cn/react-native-async-storage-async-storage.md index 5b9c27d63..0cd956c51 100644 --- a/zh-cn/react-native-async-storage-async-storage.md +++ b/zh-cn/react-native-async-storage-async-storage.md @@ -24,7 +24,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/async-storage Releases](https://github.com/react-native-oh-library/async-storage/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -151,7 +151,7 @@ Version <= @react-native-oh-tpl/async-storage@1.21.0-0.2.2@deprecated 暂不支 "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/async-storage": "file:../../node_modules/@react-native-oh-tpl/async-storage/harmony/async_storage.har" + "@react-native-ohos/async-storage": "file:../../node_modules/@react-native-ohos/async-storage/harmony/async_storage.har" } ``` @@ -190,7 +190,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/async-storage/src/main/cpp" ./async-storage) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/async-storage/src/main/cpp" ./async-storage) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -231,7 +231,7 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... -+ import {AsyncStoragePackage} from '@react-native-oh-tpl/async-storage/ts'; ++ import {AsyncStoragePackage} from '@react-native-ohos/async-storage/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -259,7 +259,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/async-storage Releases](https://github.com/react-native-oh-library/async-storage/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) ## API diff --git a/zh-cn/react-native-blob-util.md b/zh-cn/react-native-blob-util.md index 74b235c71..944b47f66 100644 --- a/zh-cn/react-native-blob-util.md +++ b/zh-cn/react-native-blob-util.md @@ -24,7 +24,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/react-native-blob-util Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -437,7 +437,7 @@ Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated 暂不 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-blob-util": "file:../../node_modules/@react-native-oh-tpl/react-native-blob-util/harmony/blobUtil.har" + "@react-native-ohos/react-native-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" } ``` @@ -459,7 +459,7 @@ ohpm install 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: ```diff -+ import {BlobUtilPackage} from '@react-native-oh-tpl/react-native-blob-util/ts'; ++ import {BlobUtilPackage} from '@react-native-ohos/react-native-blob-util/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -487,7 +487,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-blob-util Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-blob-util Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) ## API diff --git a/zh-cn/react-native-cameraroll.md b/zh-cn/react-native-cameraroll.md index ada6302bd..19a5525e6 100644 --- a/zh-cn/react-native-cameraroll.md +++ b/zh-cn/react-native-cameraroll.md @@ -23,7 +23,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-cameraroll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/react-native-cameraroll Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -111,7 +111,7 @@ Version <= @react-native-oh-tpl/camera-roll@7.8.3-0.1.5@deprecated 暂不支持 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/camera-roll": "file:../../node_modules/@react-native-oh-tpl/camera-roll/harmony/camera_roll.har" + "@react-native-ohos/camera-roll": "file:../../node_modules/@react-native-ohos/camera-roll/harmony/camera_roll.har" } ``` @@ -134,7 +134,7 @@ ohpm install ```diff ... -+ import { CameraRollPackage } from '@react-native-oh-tpl/camera-roll/ts'; ++ import { CameraRollPackage } from '@react-native-ohos/camera-roll/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -163,7 +163,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/camera-roll Releases](https://github.com/react-native-oh-library/react-native-cameraroll/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/camera-roll Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-cameraroll/releases) ## 静态方法 diff --git a/zh-cn/react-native-community-netinfo.md b/zh-cn/react-native-community-netinfo.md index 540da5686..a921e2bbd 100644 --- a/zh-cn/react-native-community-netinfo.md +++ b/zh-cn/react-native-community-netinfo.md @@ -23,7 +23,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/netinfo Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -114,7 +114,7 @@ Version <= @react-native-oh-tpl/netinfo@11.1.0-0.0.8@deprecated 暂不支持 Aut ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/netinfo": "file:../../node_modules/@react-native-oh-tpl/netinfo/harmony/netinfo.har" + "@react-native-ohos/netinfo": "file:../../node_modules/@react-native-ohos/netinfo/harmony/netinfo.har" } ``` @@ -153,7 +153,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/netinfo/src/main/cpp" ./netinfo) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/netinfo/src/main/cpp" ./netinfo) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -196,7 +196,7 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... -+ import {NetInfoPackage} from '@react-native-oh-tpl/netinfo/ts'; ++ import {NetInfoPackage} from '@react-native-ohos/netinfo/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -225,7 +225,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/netinfo Releases](https://github.com/react-native-oh-library/react-native-netinfo/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/netinfo Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-netinfo/releases) ## 属性 diff --git a/zh-cn/react-native-localize.md b/zh-cn/react-native-localize.md index b9e11e842..135f81bfb 100644 --- a/zh-cn/react-native-localize.md +++ b/zh-cn/react-native-localize.md @@ -23,7 +23,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-localize Releases](https://github.com/react-native-oh-library/react-native-localize/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/react-native-localize Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -160,7 +160,7 @@ Version <= @react-native-oh-tpl/react-native-localize@3.1.0-0.0.1@deprecated 暂 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-localize": "file:../../node_modules/@react-native-oh-tpl/react-native-localize/harmony/rn_localize.har" + "@react-native-ohos/react-native-localize": "file:../../node_modules/@react-native-ohos/react-native-localize/harmony/rn_localize.har" } ``` @@ -184,7 +184,7 @@ ohpm install ```diff ... -+ import { RNLocalizePackage } from '@react-native-oh-tpl/react-native-localize/ts'; ++ import { RNLocalizePackage } from '@react-native-ohos/react-native-localize/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -213,7 +213,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-localize Releases](https://github.com/react-native-oh-library/react-native-localize/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-localize Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-localize/releases) ## API diff --git a/zh-cn/react-native-orientation-locker.md b/zh-cn/react-native-orientation-locker.md index 26d232e65..fb9843b9c 100644 --- a/zh-cn/react-native-orientation-locker.md +++ b/zh-cn/react-native-orientation-locker.md @@ -254,7 +254,7 @@ Version <= @react-native-oh-tpl/react-native-orientation-locker@1.7.0-0.0.7@depr ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-orientation-locker":"file:../../node_modules/@react-native-oh-tpl/react-native-orientation-locker/harmony/orientation_locker.har" + "@react-native-ohos/react-native-orientation-locker":"file:../../node_modules/@react-native-ohos/react-native-orientation-locker/harmony/orientation_locker.har" } ``` @@ -276,7 +276,7 @@ ohpm install ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-orientation-locker":"file:../../node_modules/@react-native-oh-tpl/react-native-orientation-locker/harmony/orientation_locker" + "@react-native-ohos/react-native-orientation-locker":"file:../../node_modules/@react-native-ohos/react-native-orientation-locker/harmony/orientation_locker" } ``` @@ -293,7 +293,7 @@ ohpm install --no-link ```diff ... -+ import { RNOrientationLockerPackage } from '@react-native-oh-tpl/react-native-orientation-locker/ts'; ++ import { RNOrientationLockerPackage } from '@react-native-ohos/react-native-orientation-locker/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ new SamplePackage(ctx), diff --git a/zh-cn/react-native-sound.md b/zh-cn/react-native-sound.md index 9bff7d55d..0d587be5c 100644 --- a/zh-cn/react-native-sound.md +++ b/zh-cn/react-native-sound.md @@ -196,7 +196,7 @@ Version <= @react-native-oh-tpl/react-native-sound@0.11.2-0.0.13@deprecated 暂 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-sound": "file:../../node_modules/@react-native-oh-tpl/react-native-sound/harmony/sound.har" + "@react-native-ohos/react-native-sound": "file:../../node_modules/@react-native-ohos/react-native-sound/harmony/sound.har" } ``` @@ -235,7 +235,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-sound/src/main/cpp" ./sound) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-sound/src/main/cpp" ./sound) # RNOH_BEGIN: manual_package_linking_1 add_library(rnoh_app SHARED @@ -274,7 +274,7 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... -+ import { SoundPackage } from '@react-native-oh-tpl/react-native-sound/ts'; ++ import { SoundPackage } from '@react-native-ohos/react-native-sound/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index 209f3d711..e0aafc0aa 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -23,7 +23,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-webview Releases](https://github.com/react-native-oh-library/react-native-webview/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/react-native-webview Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -95,7 +95,7 @@ Version <= @react-native-oh-tpl/react-native-webview@13.10.4@deprecated 暂不 "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-webview": "file:../../node_modules/@react-native-oh-tpl/react-native-webview/harmony/rn_webview.har" + "@react-native-ohos/react-native-webview": "file:../../node_modules/@react-native-ohos/react-native-webview/harmony/rn_webview.har" } ``` @@ -135,7 +135,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULE_DIR}/@react-native-oh-tpl/react-native-webview/src/main/cpp" ./webview) ++ add_subdirectory("${OH_MODULE_DIR}/@react-native-ohos/react-native-webview/src/main/cpp" ./webview) # RNOH_END: manual_package_linking_1 @@ -176,7 +176,7 @@ std::vector> PackageProvider::getPackages(Package::Cont 找到 **function buildCustomComponent()**,一般位于 `entry/src/main/ets/pages/index.ets` 或 `entry/src/main/ets/rn/LoadBundle.ets`,添加: ```diff -+ import { WebView, WEB_VIEW } from "@react-native-oh-tpl/react-native-webview" ++ import { WebView, WEB_VIEW } from "@react-native-ohos/react-native-webview" @Builder function buildCustomComponent(ctx: ComponentBuilderContext) { @@ -211,7 +211,7 @@ const arkTsComponentNames: Array = [ ```diff import type {RNPackageContext, RNPackage} from 'rnoh/ts'; import {SamplePackage} from 'rnoh-sample-package/ts'; -+ import { WebViewPackage } from '@react-native-oh-tpl/react-native-webview/ts'; ++ import { WebViewPackage } from '@react-native-ohos/react-native-webview/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -240,7 +240,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[ @react-native-oh-tpl/react-native-webview Releases](https://github.com/react-native-oh-library/react-native-webview/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[ @react-native-ohos/react-native-webview Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-webview/releases) ## 属性 > [!WARNING]ignoreSilentHardwareSwitch需要设置true网页播放才有声音 -- Gitee From bca389dd62021af37733970e1fe44fbfc90c2c85 Mon Sep 17 00:00:00 2001 From: chenyihao9 <286884497@qq.com> Date: Thu, 23 Oct 2025 14:43:31 +0800 Subject: [PATCH 7/7] =?UTF-8?q?docs:=20[Issues:=20#ICXJ4Z]=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=82=EF=BC=8C=E6=96=87=E6=A1=A3=E5=AE=A1=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/lottie-react-native.md | 1 + en/react-native-webview.md | 1 + zh-cn/lottie-react-native.md | 1 + zh-cn/react-native-webview.md | 1 + 4 files changed, 4 insertions(+) diff --git a/en/lottie-react-native.md b/en/lottie-react-native.md index 52dd26c2e..01b301a6c 100644 --- a/en/lottie-react-native.md +++ b/en/lottie-react-native.md @@ -75,6 +75,7 @@ export default App; Version >= @react-native-ohos/lottie-react-native@6.4.2 now supports Autolink without requiring manual configuration. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +The 0.72 branch supports full Autolinking functionality starting from the RNOH 0.72.94 version (corresponding to the @react-native-oh/react-native-harmony-cli version 0.0.40). Currently, Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-webview.md b/en/react-native-webview.md index 16733718a..7218cc027 100644 --- a/en/react-native-webview.md +++ b/en/react-native-webview.md @@ -63,6 +63,7 @@ export default function WebViewDemo() { Version > @react-native-ohos/react-native-webview@13.10.4 now supports Autolink without requiring manual configuration. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +The 0.72 branch supports full Autolinking functionality starting from the RNOH 0.72.94 version (corresponding to the @react-native-oh/react-native-harmony-cli version 0.0.40). Currently, Version <= @react-native-oh-tpl/react-native-webview@13.10.4@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/zh-cn/lottie-react-native.md b/zh-cn/lottie-react-native.md index d0ce4e16f..fb343a016 100644 --- a/zh-cn/lottie-react-native.md +++ b/zh-cn/lottie-react-native.md @@ -73,6 +73,7 @@ export default App; Version >= @react-native-ohos/lottie-react-native@6.4.2,已支持 Autolink,无需手动配置。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +0.72分支从RNOH 0.72.94版本(对应 @react-native-oh/react-native-harmony-cli 版本是0.0.40)开始可使用完整的 Autolinking 功能。 Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index e0aafc0aa..ecbfcbf23 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -62,6 +62,7 @@ export default function WebViewDemo() { Version > @react-native-ohos/react-native-webview@13.10.4,已支持 Autolink,无需手动配置。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +0.72分支从RNOH 0.72.94版本(对应 @react-native-oh/react-native-harmony-cli 版本是0.0.40)开始可使用完整的 Autolinking 功能。 Version <= @react-native-oh-tpl/react-native-webview@13.10.4@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 -- Gitee