From 0360f72bc717d93997194752f0e12f811692982b Mon Sep 17 00:00:00 2001 From: cold-zone Date: Wed, 13 Aug 2025 15:04:42 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICSQYQ]=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A00.77=208=E4=B8=AA=E4=B8=89=E6=96=B9=E5=BA=93=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cold-zone --- zh-cn/react-native-autoheight-webview.md | 21 +++++++- zh-cn/react-native-community-checkbox.md | 39 +++++++++++--- zh-cn/react-native-fast-image.md | 53 +++++++++++++++++-- zh-cn/react-native-fs.md | 21 ++++++-- ...react-native-keyboard-aware-scroll-view.md | 24 ++++++++- zh-cn/react-native-snap-carousel.md | 24 ++++++++- zh-cn/react-native-text-size.md | 41 ++++++++++++-- zh-cn/react-native-transitiongroup.md | 23 +++++++- 8 files changed, 218 insertions(+), 28 deletions(-) diff --git a/zh-cn/react-native-autoheight-webview.md b/zh-cn/react-native-autoheight-webview.md index 771bdcbc..bdb77a6a 100644 --- a/zh-cn/react-native-autoheight-webview.md +++ b/zh-cn/react-native-autoheight-webview.md @@ -16,8 +16,13 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-autoheight-webview Releases](https://github.com/react-native-oh-library/react-native-autoheight-webview/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 1.6.5 | [@react-native-oh-tpl/react-native-autoheight-webview Releases](https://github.com/react-native-oh-library/react-native-autoheight-webview/releases) | 0.72 | +| 1.6.6 | [@react-native-ohos/react-native-autoheight-webview Releases]() | 0.77 | +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -25,13 +30,21 @@ #### **npm** ```bash +# V1.6.5 npm install @react-native-oh-tpl/react-native-autoheight-webview + +# V1.6.6 +npm install @react-native-ohos/react-native-autoheight-webview ``` #### **yarn** ```bash +# V1.6.5 yarn add @react-native-oh-tpl/react-native-autoheight-webview + +# V1.6.6 +yarn add @react-native-ohos/react-native-autoheight-webview ``` @@ -85,7 +98,11 @@ export function WebviewExample() { 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[ @react-native-oh-tpl/react-native-autoheight-webview Releases](https://github.com/react-native-oh-library/react-native-autoheight-webview/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 1.6.5 | [@react-native-oh-tpl/react-native-autoheight-webview Releases](https://github.com/react-native-oh-library/react-native-autoheight-webview/releases) | 0.72 | +| 1.6.6 | [@react-native-ohos/react-native-autoheight-webview Releases]() | 0.77 | ## 属性 diff --git a/zh-cn/react-native-community-checkbox.md b/zh-cn/react-native-community-checkbox.md index c0d11b50..70d9abae 100644 --- a/zh-cn/react-native-community-checkbox.md +++ b/zh-cn/react-native-community-checkbox.md @@ -6,13 +6,12 @@ 本项目基于 [@react-native-community/checkbox](https://github.com/react-native-checkbox/react-native-checkbox) 开发。 +| Version | Package Name | Repository | Release | Version for RN | +| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | ------------------------- | +| <= 0.5.16-0.1.0@deprecated | @react-native-oh-tpl/checkbox | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox/releases) | 0.72 | +| >= 0.5.17 | @react-native-ohos/checkbox | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox/releases)| 0.77 | -该第三方库的仓库已迁移至 Gitee,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/checkbox`,具体版本所属关系如下: -| Version | Package Name | Repository | Release | -| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | -| <= 0.5.16-0.1.0@deprecated | @react-native-oh-tpl/checkbox | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox/releases) | -| >= 0.5.17 | @react-native-ohos/checkbox | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox/releases) | ## 1. 安装与使用 @@ -23,12 +22,20 @@ #### **npm** ```bash +#<= V0.5.16-0.1.0 +npm install @react-native-oh-tpl/checkbox + +#>= V0.5.17 npm install @react-native-ohos/checkbox ``` #### **yarn** ```bash +#<= V0.5.16-0.1.0 +yarn add @react-native-oh-tpl/checkbox + +#>= V0.5.17 yarn add @react-native-ohos/checkbox ``` @@ -98,13 +105,22 @@ export default function CheckBoxExample() { 打开 `entry/oh-package.json5`,添加以下依赖 +- <= V0.5.16-0.1.0 + ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-ohos/checkbox": "file:../../node_modules/@react-native-ohos/checkbox/harmony/checkbox.har", + "@react-native-ohos/checkbox": "file:../../node_modules/@react-native-oh-tpl/checkbox/harmony/checkbox.har", } ``` +- \>= V0.5.17 +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/checkbox": "file:../../node_modules/@react-native-ohos/checkbox/harmony/checkbox.har", + } +``` 点击右上角的 `sync` 按钮 或者在命令行终端执行: @@ -133,7 +149,12 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) +#<= V0.5.16-0.1.0 ++ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/checkbox/src/main/cpp" ./checkbox) + +#>= V0.5.17 + add_subdirectory("${OH_MODULES}/@react-native-ohos/checkbox/src/main/cpp" ./checkbox) + # RNOH_END: manual_package_linking_1 add_library(rnoh_app SHARED @@ -237,7 +258,11 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/checkbox Releases](https://gitee.com/openharmony-sig/rntpc_react-native-checkbox/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| Version | Package Name | Repository | Release | Version for RN | +| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | ------------------------- | +| <= 0.5.16-0.1.0@deprecated | @react-native-oh-tpl/checkbox | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-checkbox/releases) | 0.72 | +| >= 0.5.17 | @react-native-ohos/checkbox | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-checkbox/releases)| 0.77 | ## 4. 属性 diff --git a/zh-cn/react-native-fast-image.md b/zh-cn/react-native-fast-image.md index ff69b27e..c1750c6a 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -15,8 +15,15 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-fast-image) ## 安装与使用 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 8.6.3 |[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases)| 0.72 | +| 8.6.4 |[@react-native-ohos/react-native-fast-image Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 + -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 > [!WARNING] react-native-fast-image组件在运行时会默认开启app.setImangeCacheCount 申请内存,可以通过globalThis.IsSetImageRawDataCacheSize赋值进行关闭,关闭后图片比较多时会影响解码速度,可以通过在业务逻辑自定义app.setImangeCacheCount 内存申请,提高解码速度,[参考连接](https://github.com/react-native-oh-library/react-native-fast-image/blob/sig/harmony/fast_image/src/main/ets/FastImagePackage.ts)。 @@ -27,14 +34,22 @@ #### **npm** ```bash +#v8.6.3 npm install @react-native-oh-tpl/react-native-fast-image + +#v8.6.4 +npm install @react-native-ohos/react-native-fast-image ``` #### **yarn** ```bash +#v8.6.3 yarn add @react-native-oh-tpl/react-native-fast-image -``` + +#v8.6.4 +yard add @react-native-ohos/react-native-fast-image +`` @@ -131,13 +146,20 @@ const styles = StyleSheet.create({ 打开 `entry/oh-package.json5`,添加以下依赖 +- V8.6.3 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", "@react-native-oh-tpl/react-native-fast-image": "file:../../node_modules/@react-native-oh-tpl/react-native-fast-image/harmony/fast_image.har" } ``` - +- V8.6.4 +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/react-native-fast-image": "file:../../node_modules/@react-native-ohos/react-native-fast-image/harmony/fast_image.har" + } +``` 点击右上角的 `sync` 按钮 或者在终端执行: @@ -173,7 +195,13 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) + +#V8.6.3 + add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-fast-image/src/main/cpp" ./fast-image) + +#V8.6.4 ++ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-fast-image/src/main/cpp" ./fast-image) + # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -213,7 +241,7 @@ std::vector> PackageProvider::getPackages(Package::Cont ### 4.在 ArkTs 侧引入 FastImagePackage 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: - +- V8.6.3 ```diff ... + import {FastImagePackage} from '@react-native-oh-tpl/react-native-fast-image/ts'; @@ -225,7 +253,18 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +- V8.6.4 +```diff + ... ++ import {FastImagePackage} from '@react-native-ohos/react-native-fast-image/ts'; +export function createRNPackages(ctx: RNPackageContext): RNPackage[] { + return [ + new SamplePackage(ctx), ++ new FastImagePackage(ctx) + ]; +} +``` ### 5.运行 点击右上角的 `sync` 按钮 @@ -245,7 +284,11 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 8.6.3 |[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases)| 0.72 | +| 8.6.4 |[@react-native-ohos/react-native-fast-image Releases]() | 0.77 | ## 属性 diff --git a/zh-cn/react-native-fs.md b/zh-cn/react-native-fs.md index c60ea9c2..8ea3e65a 100644 --- a/zh-cn/react-native-fs.md +++ b/zh-cn/react-native-fs.md @@ -6,10 +6,14 @@ 本项目基于 [react-native-fs@2.20.0](https://github.com/itinance/react-native-fs/tree/v2.20.0) 开发。 -| 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) | +| Version | Package Name | Repository | Release | Version for RN | +| ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | ------------------------- | +| <= 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) | 0.72 | +| >= 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) | 0.77 | + + + + ## 1. 安装与使用 @@ -20,12 +24,19 @@ #### npm ```bash +# <= V2.20.0-0.1.14 +npm install @react-native-oh-tpl/react-native-fs +# >= V2.20.1 npm install @react-native-ohos/react-native-fs ``` #### yarn ```bash +# <= V2.20.0-0.1.14 +yarn add @react-native-oh-tpl/react-native-fs + +# >= V2.20.1 yarn add @react-native-ohos/react-native-fs ``` @@ -173,7 +184,7 @@ ohpm install ### 2.3. 配置 CMakeLists 和引入 RNFSPackage -> [!TIP] 版本 v2.20.1 及以上需要 +> [!TIP] 版本 V2.20.1 及以上需要 打开 `entry/src/main/cpp/CMakeLists.txt`,添加: diff --git a/zh-cn/react-native-keyboard-aware-scroll-view.md b/zh-cn/react-native-keyboard-aware-scroll-view.md index 2a9db5b2..55e3da88 100644 --- a/zh-cn/react-native-keyboard-aware-scroll-view.md +++ b/zh-cn/react-native-keyboard-aware-scroll-view.md @@ -16,22 +16,37 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 0.9.5 | [@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases) | 0.72 | +| 0.9.6 | [@react-native-ohos/react-native-keyboard-aware-scroll-view Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: + #### **npm** ```bash +# V0.9.5 npm install @react-native-oh-tpl/react-native-keyboard-aware-scroll-view + +# V0.9.6 +npm install @react-native-ohos/react-native-keyboard-aware-scroll-view ``` #### **yarn** ```bash +# V0.9.5 yarn add @react-native-oh-tpl/react-native-keyboard-aware-scroll-view + +# V0.9.6 +yarn add @react-native-ohos/react-native-keyboard-aware-scroll-view ``` @@ -99,7 +114,12 @@ const styles = StyleSheet.create({ 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 0.9.5 | [@react-native-oh-tpl/react-native-keyboard-aware-scroll-view Releases](https://github.com/react-native-oh-library/react-native-keyboard-aware-scroll-view/releases) | 0.72 | +| 0.9.6 | [@react-native-ohos/react-native-keyboard-aware-scroll-view Releases]() | 0.77 | + ## 属性 diff --git a/zh-cn/react-native-snap-carousel.md b/zh-cn/react-native-snap-carousel.md index 644cdc66..b1baa8df 100644 --- a/zh-cn/react-native-snap-carousel.md +++ b/zh-cn/react-native-snap-carousel.md @@ -16,7 +16,13 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-library/react-native-snap-carousel Releases](https://github.com/react-native-oh-library/react-native-snap-carousel/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 3.9.1 |[@react-native-oh-tpl/react-native-snap-carousel Releases](https://github.com/react-native-oh-library/react-native-snap-carousel/releases)| 0.72 | +| 3.9.2 |[@react-native-ohos/react-native-snap-carousel Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -25,12 +31,20 @@ #### **npm** ```bash +# V3.9.1 npm install @react-native-oh-tpl/react-native-snap-carousel + +# V3.9.2 +npm install @react-native-ohos/react-native-snap-carousel ``` #### **yarn** ```bash +# V3.9.1 yarn add @react-native-oh-tpl/react-native-snap-carousel + +# V3.9.2 +yarn add @react-native-ohos/react-native-snap-carousel ``` @@ -119,7 +133,13 @@ const styles = StyleSheet.create({ 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-library/react-native-snap-carousel Releases](https://github.com/react-native-oh-library/react-native-snap-carousel/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 3.9.1 |[@react-native-oh-tpl/react-native-fast-image Releases](https://github.com/react-native-oh-library/react-native-fast-image/releases)| 0.72 | +| 3.9.2 |[@react-native-ohos/react-native-fast-image Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 ## 属性 diff --git a/zh-cn/react-native-text-size.md b/zh-cn/react-native-text-size.md index 263042e6..391b4b48 100644 --- a/zh-cn/react-native-text-size.md +++ b/zh-cn/react-native-text-size.md @@ -17,7 +17,14 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-text-size Releases](https://github.com/react-native-oh-library/react-native-text-size/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 4.0.0 | [@react-native-oh-tpl/react-native-text-size Releases](https://github.com/react-native-oh-library/react-native-text-size/releases) | 0.72 | +| 4.0.1 | [@react-native-ohos/react-native-text-size Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 + 进入到工程目录并输入以下命令: @@ -26,13 +33,21 @@ #### **npm** ```bash +# V4.0.0 npm install @react-native-oh-tpl/react-native-text-size + +# V4.0.1 +npm install @react-native-ohos/react-native-text-size ``` #### **yarn** ```bash +# V4.0.0 yarn add @react-native-oh-tpl/react-native-text-size + +# V4.0.1 +yarn add @react-native-ohos/react-native-text-size ``` @@ -216,13 +231,20 @@ export default function TextSizeExample() { > [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 打开 `entry/oh-package.json5`,添加以下依赖 - +- V4.0.0 ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", "@react-native-oh-tpl/react-native-text-size": "file:../../node_modules/@react-native-oh-tpl/react-native-text-size/harmony/text_size.har" } ``` +- V4.0.1 +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-oh-tpl/react-native-text-size": "file:../../node_modules/@react-native-ohos/react-native-text-size/harmony/text_size.har" + } +``` 点击右上角的 `sync` 按钮 @@ -259,7 +281,11 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) +# V4.0.0 + add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-text-size/src/main/cpp" ./text-size) + +# V4.0.1 ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-text-size/src/main/cpp" ./text-size) # RNOH_END: manual_package_linking_1 add_library(rnoh_app SHARED @@ -297,8 +323,11 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... + // V4.0.0 + import { RNTextSizePackage } from '@react-native-oh-tpl/react-native-text-size/ts'; + // V4.0.1 ++ import { RNTextSizePackage } from '@react-native-ohos/react-native-text-size/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ ... @@ -326,7 +355,13 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-text-size Releases](https://github.com/react-native-oh-library/react-native-text-size/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 4.0.0 | [@react-native-oh-tpl/react-native-text-size Releases](https://github.com/react-native-oh-library/react-native-text-size/releases) | 0.72 | +| 4.0.1 | [@react-native-ohos/react-native-text-size Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 ## API diff --git a/zh-cn/react-native-transitiongroup.md b/zh-cn/react-native-transitiongroup.md index c3b65569..949179a8 100644 --- a/zh-cn/react-native-transitiongroup.md +++ b/zh-cn/react-native-transitiongroup.md @@ -17,7 +17,13 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-transitiongroup Releases](https://github.com/react-native-oh-library/react-native-transitiongroup/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 1.2.0 | [@react-native-oh-tpl/react-native-transitiongroup Releases](https://github.com/react-native-oh-library/react-native-transitiongroup/releases) | 0.72 | +| 1.2.1 | [@react-native-ohos/react-native-transitiongroup Releases]() | 0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -26,12 +32,20 @@ #### **npm** ```bash +# V1.2.0 +npm install @react-native-oh-tpl/react-native-transitiongroup + +# V1.2.1 npm install @react-native-oh-tpl/react-native-transitiongroup ``` #### **yarn** ```bash +# V1.2.0 +yarn add @react-native-oh-tpl/react-native-transitiongroup + +# V1.2.1 yarn add @react-native-oh-tpl/react-native-transitiongroup ``` @@ -146,7 +160,12 @@ const styles = StyleSheet.create({ 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-transitiongroup Releases](https://github.com/react-native-oh-library/react-native-transitiongroup/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息: +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 1.2.0 | [@react-native-oh-tpl/react-native-transitiongroup Releases](https://github.com/react-native-oh-library/react-native-transitiongroup/releases) | 0.72 | +| 1.2.1 | [@react-native-ohos/react-native-transitiongroup Releases]() | 0.77 | + ## API -- Gitee