From dac9b664b47b3c43544a4a7d56509a747373b3ae Mon Sep 17 00:00:00 2001 From: "@xobear-king" <2658469835@qq.com> Date: Thu, 11 Dec 2025 14:38:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20update=20react-native-wechat-lib,rea?= =?UTF-8?q?ct-native-blurhash,react-native-toolbar-android=20=E4=B8=89?= =?UTF-8?q?=E7=AF=87=E4=B8=AD=E8=8B=B1=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-blurhash.md | 52 +++++++------------ en/react-native-community-toolbar-android.md | 31 ++++++----- en/react-native-wechat-lib.md | 24 +++++---- zh-cn/react-native-blurhash.md | 51 +++++++----------- .../react-native-community-toolbar-android.md | 26 ++++++---- zh-cn/react-native-wechat-lib.md | 21 +++++--- 6 files changed, 101 insertions(+), 104 deletions(-) diff --git a/en/react-native-blurhash.md b/en/react-native-blurhash.md index 07adf191..64bf4175 100644 --- a/en/react-native-blurhash.md +++ b/en/react-native-blurhash.md @@ -19,11 +19,13 @@ ## Installation and Usage -Find the matching version information in the release address of a third-party library and download an applicable .tgz package: -| Library Version | Release Information | Supported RN Version | -| ----------- | ------------------------------------------------------------ | ---------- | -|2.0.3|[@react-native-oh-tpl/react-native-blurhash Releases](https://github.com/react-native-oh-library/react-native-blurhash/releases)|0.72| -|2.1.0|[@react-native-ohos/react-native-blurhash Releases]()|0.77| +Please refer to the Releases page of the third-party library for the corresponding version information + +| Third-party Library Version | Release Information | Supported RN Version | +|-------| ------------------------------------------------------------ | ---------- | +| <= 2.0.3-0.0.7@deprecated | [@react-native-oh-tpl/react-native-blurhash Releases(deprecated)](https://github.com/react-native-oh-library/react-native-blurhash/releases) | 0.72 | +| 2.0.4 | [@react-native-ohos/react-native-blurhash Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blurhash/releases) | 0.72 | +| 2.1.0 | [@react-native-ohos/react-native-blurhash Releases](https://github.com/react-native-oh-library/react-native-blurhash/releases) | 0.77 | For older versions not published to npm, please refer to the [Installation Guide](/en/tgz-usage-en.md) to install the tgz package. @@ -36,20 +38,12 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -# 0.72 -npm install @react-native-oh-tpl/react-native-blurhash - -# 0.77 npm install @react-native-ohos/react-native-blurhash ``` #### **yarn** ```bash -# 0.72 -yarn add @react-native-oh-tpl/react-native-blurhash - -# 0.77 yarn add @react-native-ohos/react-native-blurhash ``` @@ -269,7 +263,9 @@ export default BlurhashDemo ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/react-native-blurhash@2.0.4 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +This step provides guidance for manually configuring native dependencies. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. @@ -296,15 +292,6 @@ Method 1 (recommended): Use the HAR file. Open `entry/oh-package.json5` file and add the following dependencies: -- 0.72 -```json -"dependencies": { - "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-blurhash": "file:../../node_modules/@react-native-oh-tpl/react-native-blurhash/harmony/blurhash.har" - } -``` - -- 0.77 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", @@ -327,6 +314,8 @@ Method 2: Directly link to the source code. ### 3. Configuring CMakeLists and Introducing BlurhashPackage +> If you are using version <= 2.0.3-0.0.7, please skip this chapter. + Open `entry/src/main/cpp/CMakeLists.txt` and add the following code: ```diff @@ -348,10 +337,6 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -# 0.72 -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-blurhash/src/main/cpp" ./blurhash) - -# 0.77 + add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-blurhash/src/main/cpp" ./blurhash) # RNOH_END: manual_package_linking_1 @@ -395,10 +380,6 @@ std::vector> PackageProvider::getPackages(Package::Cont Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: ```diff -// 0.72 -+ import {BlurhashPackage} from '@react-native-oh-tpl/react-native-blurhash/ts'; - -// 0.77 + import {BlurhashPackage} from '@react-native-ohos/react-native-blurhash/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { @@ -427,10 +408,13 @@ Then build and run the code. ### Compatibility -This document is verified based on the following versions: -1. RNOH:0.72.86; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; -2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; +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. + +Verified in the following versions. +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## Properties > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. diff --git a/en/react-native-community-toolbar-android.md b/en/react-native-community-toolbar-android.md index 44b606bc..9ed9f5d7 100644 --- a/en/react-native-community-toolbar-android.md +++ b/en/react-native-community-toolbar-android.md @@ -6,17 +6,19 @@ This project is based on [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-toolbar-android/toolbar-android/tree/v0.2.1). -The third-party library repository has been migrated to Gitee and supports direct download from npm. The new package name is: `@react-native-ohos/toolbar-android`. The specific version relationships are as follows: +## 1. Installation & Usage -| Version | Package Name | Repository | Release | Supported RN Version | -|-----------------|-----|--------|----------------------------------- | ------------------ | -| <= 0.2.1-0.0.4@deprecated | @react-native-oh-tpl/toolbar-android| [Github(deprecated)](https://github.com/react-native-oh-library/toolbar-android)| [@react-native-oh-tpl/toolbar-android Releases(deprecated)](https://github.com/react-native-oh-library/toolbar-android/releases) | 0.72 -| 0.2.2 | @react-native-ohos/toolbar-android | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/tree/master)| [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.72 -| 0.3.0 | @react-native-ohos/toolbar-android | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/tree/master)| [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.77 +Please refer to the Releases page of the third-party library for the corresponding version information -## 1. Installation & Usage +| Third-party Library Version | Release Information | Supported RN Version | +|-------| ------------------------------------------------------------ | ---------- | +| <= 0.2.1-0.0.4@deprecated | [@react-native-oh-tpl/toolbar-android Releases(deprecated)](https://github.com/react-native-oh-library/toolbar-android/releases) | 0.72 | +| 0.2.2 | [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.72 | +| 0.3.0 | [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.77 | + +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. -Navigate to your project directory and run the following command: +Go to the project directory and execute the following instruction: @@ -117,6 +119,8 @@ export default App; ## 2. Manual Link +Version >= @react-native-ohos/toolbar-android@0.2.2 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + This step provides guidance for manually configuring native dependencies. First, you need to open the HarmonyOS project `harmony` within your project using DevEco Studio. @@ -172,6 +176,8 @@ Method 2: Link Source Code Directly ### 2.3. Configure CMakeLists and Import ToolbarAndroidPackage +> If you are using version <= 0.2.1-0.0.4, please skip this chapter. + Open `entry/src/main/cpp/CMakeLists.txt` and add: ```cmake @@ -289,12 +295,13 @@ Then compile and run. ### 3.1 Compatibility -To use this library, you need the correct React-Native and RNOH versions. Additionally, you need to use the matching DevEco Studio and phone ROM. +To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. -Verified in the following versions: +Verified in the following versions. -1. RNOH: 0.72.38; SDK: HarmonyOS-5.0.0(API12); ROM: 5.0.0.107; -2. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM: 6.0.0.112; +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## 4. Props diff --git a/en/react-native-wechat-lib.md b/en/react-native-wechat-lib.md index 6b0b0ebe..bca1a96b 100644 --- a/en/react-native-wechat-lib.md +++ b/en/react-native-wechat-lib.md @@ -15,14 +15,14 @@ > [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-wechat-lib) +## Installation and Usage + Please check the corresponding version information at the third-party library's Releases page: -| Library Version | Release Information | Supported RN Version | +| Third-party Library Version | Release Information | Supported RN Version | | ---------- | ------------------------------------------------------------ | ---------- | | 3.0.6 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.72 | -| 3.1.0 | [@react-native-ohos/react-native-wechat-lib Releases]() | 0.77 | - -## Installation and Usage +| 3.1.0 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.77 | Go to the project directory and execute the following instruction:: @@ -143,7 +143,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-wechat-lib@3.0.6 now supports Autolink without requiring manual configuration(The content that still needs to be manually configured has been marked in the corresponding title), currently only supports 72 frameworks. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +This step provides guidance for manually configuring native dependencies. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. @@ -188,7 +191,7 @@ Method 2: Directly link to the source code. > [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md). -### 3. Configuring EntryAbility +### 3. Configuring EntryAbility(This module always requires manual configuration) Open `entry\src\main\ets\entryability\EntryAbility.ets` and add the following code: @@ -332,10 +335,13 @@ Then build and run the code. ### Compatibility -This document is verified based on the following versions: +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. + +Verified in the following versions. -1. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71; -2. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM: 6.0.0.112; +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## API diff --git a/zh-cn/react-native-blurhash.md b/zh-cn/react-native-blurhash.md index 18b26615..5383d28b 100644 --- a/zh-cn/react-native-blurhash.md +++ b/zh-cn/react-native-blurhash.md @@ -20,10 +20,12 @@ ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息: -| 三方库版本 | 发布信息 | 支持RN版本 | -| ----------- | ------------------------------------------------------------ | ---------- | -|2.0.3|[@react-native-oh-tpl/react-native-blurhash Releases](https://github.com/react-native-oh-library/react-native-blurhash/releases)|0.72| -|2.1.0|[@react-native-ohos/react-native-blurhash Releases]()|0.77| + +| Third-party Library Version | Release Information | Supported RN Version | +|-------| ------------------------------------------------------------ | ---------- | +| <= 2.0.3-0.0.7@deprecated | [@react-native-oh-tpl/react-native-blurhash Releases(deprecated)](https://github.com/react-native-oh-library/react-native-blurhash/releases) | 0.72 | +| 2.0.4 | [@react-native-ohos/react-native-blurhash Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blurhash/releases) | 0.72 | +| 2.1.0 | [@react-native-ohos/react-native-blurhash Releases](https://github.com/react-native-oh-library/react-native-blurhash/releases) | 0.77 | 对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -36,20 +38,12 @@ #### **npm** ```bash -# 0.72 -npm install @react-native-oh-tpl/react-native-blurhash - -# 0.77 npm install @react-native-ohos/react-native-blurhash ``` #### **yarn** ```bash -# 0.72 -yarn add @react-native-oh-tpl/react-native-blurhash - -# 0.77 yarn add @react-native-ohos/react-native-blurhash ``` @@ -269,7 +263,10 @@ export default BlurhashDemo ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/react-native-blurhash@2.0.4,已支持 Autolink,无需手动配置,目前只支持72框架。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +此步骤为手动配置原生依赖项的指导。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` @@ -296,15 +293,7 @@ export default BlurhashDemo > [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 打开 `entry/oh-package.json5`,添加以下依赖 -- 0.72 -```json -"dependencies": { - "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-blurhash": "file:../../node_modules/@react-native-oh-tpl/react-native-blurhash/harmony/blurhash.har" - } -``` -- 0.77 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", @@ -327,6 +316,8 @@ ohpm install ### 3.配置 CMakeLists 和引入 BlurhashPackage +> 若使用的是 <= 2.0.3-0.0.7 版本,请跳过本章。 + 打开 `entry/src/main/cpp/CMakeLists.txt`,添加: ```diff @@ -348,10 +339,6 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -# 0.72 -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-blurhash/src/main/cpp" ./blurhash) - -# 0.77 + add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-blurhash/src/main/cpp" ./blurhash) # RNOH_END: manual_package_linking_1 @@ -395,10 +382,6 @@ std::vector> PackageProvider::getPackages(Package::Cont 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: ```diff -// 0.72 -+ import {BlurhashPackage} from '@react-native-oh-tpl/react-native-blurhash/ts'; - -// 0.77 + import {BlurhashPackage} from '@react-native-ohos/react-native-blurhash/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { @@ -427,9 +410,13 @@ ohpm install ### 兼容性 -本文档内容基于以下版本验证通过: -1. RNOH:0.72.86; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; -2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0.47 (API Version 20); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.107; +要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 + +在以下版本验证通过: + +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## 属性 diff --git a/zh-cn/react-native-community-toolbar-android.md b/zh-cn/react-native-community-toolbar-android.md index f601be51..eeb5aac1 100644 --- a/zh-cn/react-native-community-toolbar-android.md +++ b/zh-cn/react-native-community-toolbar-android.md @@ -6,15 +6,17 @@ 本项目基于 [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-toolbar-android/toolbar-android/tree/v0.2.1) 开发。 -该第三方库的仓库已迁移至 Gitee,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/toolbar-android`,具体版本所属关系如下: +## 安装与使用 -| Version | Package Name | Repository | Release | Supported RN Version | -|-----------------|-----|--------|----------------------------------- | ------------------ | -| <= 0.2.1-0.0.4@deprecated | @react-native-oh-tpl/toolbar-android| [Github(deprecated)](https://github.com/react-native-oh-library/toolbar-android)| [@react-native-oh-tpl/toolbar-android Releases(deprecated)](https://github.com/react-native-oh-library/toolbar-android/releases) | 0.72 -| 0.2.2 | @react-native-ohos/toolbar-android | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/tree/master)| [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.72 -| 0.3.0 | @react-native-ohos/toolbar-android | [Gitcode](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/tree/master)| [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.77 +请到三方库的 Releases 发布地址查看配套的版本信息: -## 1.安装与使用 +| 三方库版本 | 发布信息 | 支持RN版本 | +|-------| ------------------------------------------------------------ | ---------- | +| <= 0.2.1-0.0.4@deprecated | [@react-native-oh-tpl/toolbar-android Releases(deprecated)](https://github.com/react-native-oh-library/toolbar-android/releases) | 0.72 | +| 0.2.2 | [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.72 | +| 0.3.0 | [@react-native-ohos/toolbar-android Releases](https://gitcode.com/openharmony-sig/rntpc_toolbar-android/releases) | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -117,6 +119,9 @@ export default App; ## 2.Manual Link +Version >= @react-native-ohos/toolbar-android@0.2.2,已支持 Autolink,无需手动配置,目前只支持72框架。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + 此步骤为手动配置原生依赖项的指导。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 @@ -171,6 +176,8 @@ ohpm install ### 2.3.配置 CMakeLists 和引入 ToolbarAndroidPackage +> 若使用的是 <= 0.2.1-0.0.4 版本,请跳过本章。 + 打开 `entry/src/main/cpp/CMakeLists.txt`,添加: ```diff @@ -293,8 +300,9 @@ ohpm install 在以下版本验证通过: -1. RNOH: 0.72.38; SDK: HarmonyOS-5.0.0(API12); ROM: 5.0.0.107; -2. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM: 6.0.0.112; +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## 4.属性 diff --git a/zh-cn/react-native-wechat-lib.md b/zh-cn/react-native-wechat-lib.md index a8cebfeb..314e2011 100644 --- a/zh-cn/react-native-wechat-lib.md +++ b/zh-cn/react-native-wechat-lib.md @@ -15,17 +15,17 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-wechat-lib) +## 安装与使用 + 请到三方库的 Releases 发布地址查看配套的版本信息: | 三方库版本 | 发布信息 | 支持RN版本 | | ---------- | ------------------------------------------------------------ | ---------- | | 3.0.6 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.72 | -| 3.1.0 | [@react-native-ohos/react-native-wechat-lib Releases]() | 0.77 | +| 3.1.0 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.77 | 对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 -## 安装与使用 - 进入到工程目录并输入以下命令: @@ -145,7 +145,9 @@ const styles = StyleSheet.create({ ## Link -目前鸿蒙暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/react-native-wechat-lib@3.0.6,已支持 Autolink,无需手动配置(仍需手动配置的内容已在对应标题处标记),目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +此步骤为手动配置原生依赖项的指导。 首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony` @@ -193,7 +195,7 @@ ohpm install > [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md) -### 3.配置 EntryAbility +### 3.配置 EntryAbility(该模块始终需要手动配置) 鸿蒙工程下 EntryAbility,一般位于 `entry\src\main\ets\entryability\EntryAbility.ets` @@ -337,10 +339,13 @@ ohpm install ### 兼容性 -本文档内容基于以下版本验证通过: +要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 + +在以下版本验证通过: -1. RNOH:0.72.33; SDK:OpenHarmony 5.0.0.71(API Version 12 Release); IDE:DevEco Studio 5.0.3.900; ROM:NEXT.0.0.71; -2. RNOH:0.77.18; SDK:HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM:6.0.0.112; +1. RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2. RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3. RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; ## API -- Gitee From a6125798c8a850a677a7c41b3b9fcc09fe6ec353 Mon Sep 17 00:00:00 2001 From: "@xobear-king" <2658469835@qq.com> Date: Thu, 11 Dec 2025 15:22:24 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20update=20react-native-blurhash,react?= =?UTF-8?q?-native-toolbar-android=20=E6=A0=BC=E5=BC=8F=E5=92=8C=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-community-toolbar-android.md | 2 +- zh-cn/react-native-blurhash.md | 2 +- zh-cn/react-native-community-toolbar-android.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/en/react-native-community-toolbar-android.md b/en/react-native-community-toolbar-android.md index 9ed9f5d7..94eddae3 100644 --- a/en/react-native-community-toolbar-android.md +++ b/en/react-native-community-toolbar-android.md @@ -4,7 +4,7 @@

@react-native-community/toolbar-android

-This project is based on [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-toolbar-android/toolbar-android/tree/v0.2.1). +This project is based on [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-oh-library/toolbar-android). ## 1. Installation & Usage diff --git a/zh-cn/react-native-blurhash.md b/zh-cn/react-native-blurhash.md index 5383d28b..50acfb45 100644 --- a/zh-cn/react-native-blurhash.md +++ b/zh-cn/react-native-blurhash.md @@ -21,7 +21,7 @@ 请到三方库的 Releases 发布地址查看配套的版本信息: -| Third-party Library Version | Release Information | Supported RN Version | +| 三方库版本 | 发布信息 | 支持RN版本 | |-------| ------------------------------------------------------------ | ---------- | | <= 2.0.3-0.0.7@deprecated | [@react-native-oh-tpl/react-native-blurhash Releases(deprecated)](https://github.com/react-native-oh-library/react-native-blurhash/releases) | 0.72 | | 2.0.4 | [@react-native-ohos/react-native-blurhash Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blurhash/releases) | 0.72 | diff --git a/zh-cn/react-native-community-toolbar-android.md b/zh-cn/react-native-community-toolbar-android.md index eeb5aac1..b74898bc 100644 --- a/zh-cn/react-native-community-toolbar-android.md +++ b/zh-cn/react-native-community-toolbar-android.md @@ -4,7 +4,7 @@

@react-native-community/toolbar-android

-本项目基于 [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-toolbar-android/toolbar-android/tree/v0.2.1) 开发。 +本项目基于 [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-oh-library/toolbar-android) 开发。 ## 安装与使用 -- Gitee From 6957245c5c5f042942a89a47008812e864bae054 Mon Sep 17 00:00:00 2001 From: "@xobear-king" <2658469835@qq.com> Date: Thu, 11 Dec 2025 15:47:13 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20update=20rreact-native-toolbar-andro?= =?UTF-8?q?id=20=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-community-toolbar-android.md | 2 +- zh-cn/react-native-community-toolbar-android.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/react-native-community-toolbar-android.md b/en/react-native-community-toolbar-android.md index 94eddae3..55e89c79 100644 --- a/en/react-native-community-toolbar-android.md +++ b/en/react-native-community-toolbar-android.md @@ -4,7 +4,7 @@

@react-native-community/toolbar-android

-This project is based on [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-oh-library/toolbar-android). +> [!TIP] [GitHub address](https://github.com/react-native-oh-library/toolbar-android) ## 1. Installation & Usage diff --git a/zh-cn/react-native-community-toolbar-android.md b/zh-cn/react-native-community-toolbar-android.md index b74898bc..2d2dc764 100644 --- a/zh-cn/react-native-community-toolbar-android.md +++ b/zh-cn/react-native-community-toolbar-android.md @@ -4,7 +4,7 @@

@react-native-community/toolbar-android

-本项目基于 [@react-native-toolbar-android/toolbar-android@v0.2.1](https://github.com/react-native-oh-library/toolbar-android) 开发。 +> [!TIP] [Github 地址](https://github.com/react-native-oh-library/toolbar-android) ## 安装与使用 -- Gitee From 207d221564a123c5061560b5e3fe6745f72c8789 Mon Sep 17 00:00:00 2001 From: "@xobear-king" <2658469835@qq.com> Date: Thu, 11 Dec 2025 16:51:15 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20update=20en/react-native-wechat-lib.?= =?UTF-8?q?md=20=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-wechat-lib.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/en/react-native-wechat-lib.md b/en/react-native-wechat-lib.md index bca1a96b..5635f463 100644 --- a/en/react-native-wechat-lib.md +++ b/en/react-native-wechat-lib.md @@ -24,7 +24,9 @@ Please check the corresponding version information at the third-party library's | 3.0.6 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.72 | | 3.1.0 | [@react-native-ohos/react-native-wechat-lib Releases](https://github.com/react-native-oh-library/react-native-wechat-lib/releases) | 0.77 | -Go to the project directory and execute the following instruction:: +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: -- Gitee