diff --git a/zh-cn/react-native-image-capinsets-next.md b/zh-cn/react-native-image-capinsets-next.md index 20525723f701d142ddd5bcf20da493a53e78c092..a0223878a489aeb4dd21c1462889e707e9b136d2 100644 --- a/zh-cn/react-native-image-capinsets-next.md +++ b/zh-cn/react-native-image-capinsets-next.md @@ -16,7 +16,12 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-image-capinsets-next Releases](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 0.6.1 | [@react-native-oh-tpl/react-native-image-capinsets-next Releases](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) | 0.72 | +| 0.6.2 | [@react-native-ohos/react-native-image-capinsets-next Releases Releases]() | 0.77 | 进入到工程目录并输入以下命令: @@ -25,13 +30,21 @@ #### **npm** ```bash +# V0.6.1 npm install @react-native-oh-tpl/react-native-image-capinsets-next + +# V0.6.2 +npm install @react-native-ohos/react-native-image-capinsets-next ``` #### **yarn** ```bash +# V0.6.1 yarn add @react-native-oh-tpl/react-native-image-capinsets-next + +# V0.6.2 +yarn add @react-native-ohos/react-native-image-capinsets-next ``` @@ -153,6 +166,8 @@ export default YourImage; 打开 `entry/oh-package.json5`,添加以下依赖 +- V0.6.1 + ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", @@ -160,6 +175,15 @@ export default YourImage; } ``` +- V0.6.2 + +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/react-native-image-capinsets-next": "file:../../node_modules/@react-native-ohos/react-native-image-capinsets-next/harmony/rn_image_capinsets.har" + } +``` + 点击右上角的 `sync` 按钮 或者在终端执行: @@ -179,8 +203,12 @@ ohpm install ```diff ... + // V0.6.1 + import { IMAGE_CAP_INSETS, RNCImageCapInsets } from "@react-native-oh-tpl/react-native-image-capinsets-next" + // V0.6.2 ++ import { IMAGE_CAP_INSETS, RNCImageCapInsets } from "@react-native-ohos/react-native-image-capinsets-next" + @Builder export function buildCustomRNComponent(ctx: ComponentBuilderContext) { ... @@ -214,8 +242,12 @@ const arkTsComponentNames: Array = [ ```diff ... + // V0.6.1 + import { RNCImageCapInsetsPackage } from '@react-native-oh-tpl/react-native-image-capinsets-next/ts'; + // V0.6.2 ++ import { RNCImageCapInsetsPackage } from '@react-native-ohos/react-native-image-capinsets-next/ts'; + export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ new SamplePackage(ctx), @@ -243,7 +275,12 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-image-capinsets-next Releases](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 0.6.1 | [@react-native-oh-tpl/react-native-image-capinsets-next Releases](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) | 0.72 | +| 0.6.2 | [@react-native-ohos/react-native-image-capinsets-next Releases Releases]() | 0.77 | ## 属性 diff --git a/zh-cn/react-native-modal.md b/zh-cn/react-native-modal.md index 9091a6a90dcf0d7092149c143511be048dfc72dc..4e484f4d9cbc53ab940848c439f74bcb153ef962 100644 --- a/zh-cn/react-native-modal.md +++ b/zh-cn/react-native-modal.md @@ -16,7 +16,12 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-modal Releases](https://github.com/react-native-oh-library/react-native-modal/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 13.0.1 | [@react-native-oh-tpl/react-native-modal Releases](https://github.com/react-native-oh-library/react-native-modal/releases) | 0.72 | +| 14.0.1 | [@react-native-ohos/react-native-modal Releases]() | 0.77 | 进入到工程目录并输入以下命令: @@ -25,13 +30,21 @@ #### **npm** ```bash +# V13.0.1 npm install @react-native-oh-tpl/react-native-modal + +# V14.0.1 +npm install @react-native-ohos/react-native-modal ``` #### **yarn** ```bash +# V13.0.1 yarn add @react-native-oh-tpl/react-native-modal + +# V14.0.1 +yarn add @react-native-ohos/react-native-modal ``` @@ -126,7 +139,12 @@ export default DefaultModal; 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-modal Releases](https://github.com/react-native-oh-library/react-native-modal/releases) +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ---------- | ------------------------------------------------------------ | ---------- | +| 13.0.1 | [@react-native-oh-tpl/react-native-modal Releases](https://github.com/react-native-oh-library/react-native-modal/releases) | 0.72 | +| 14.0.1 | [@react-native-ohos/react-native-modal Releases]() | 0.77 | ## 属性