From 1c205e18b9eccbe7581f2f7e36fc4f491883748f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=BF=97=E9=B9=8F?= Date: Sat, 7 Dec 2024 15:36:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IB9R0S]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20react-native-image-crop-picker=20=E4=BD=BF=E7=94=A8?= =?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-image-crop-picker.md | 222 ++++++++++++++--------- zh-cn/react-native-image-crop-picker.md | 228 +++++++++++++++--------- 2 files changed, 280 insertions(+), 170 deletions(-) diff --git a/en/react-native-image-crop-picker.md b/en/react-native-image-crop-picker.md index b79c032d..dbb8b3b0 100644 --- a/en/react-native-image-crop-picker.md +++ b/en/react-native-image-crop-picker.md @@ -1,37 +1,38 @@ -> Template version: v0.2.2 +> Template version: v0.3.0

react-native-image-crop-picker

-

- - Supported platforms - - - License - -

-> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-image-crop-picker) +This project is based on [react-native-image-crop-picker@0.40.3](https://github.com/ivpusic/react-native-image-crop-picker)。 -## Installation and Usage +| Version | Package Name | Repository | Release | +| --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| <= 0.40.3-0.0.14@deprecated | @react-native-oh-tpl/react-native-image-crop-picker | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-image-crop-picker) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-image-crop-picker/releases) | +| >= 0.40.4 | @react-native-ohos/react-native-image-crop-picker | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/releases) | -Find the matching version information in the release address of a third-party library:[@react-native-oh-tpl/react-native-image-crop-picker Releases ](https://github.com/react-native-oh-library/react-native-image-crop-picker/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. + +> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-image-crop-picker) + +## 1. Installation and Usage Go to the project directory and execute the following instruction: + #### **npm** -``` -npm install @react-native-oh-tpl/react-native-image-crop-picker +```bash +npm install @react-native-ohos/react-native-image-crop-picker ``` #### **yarn** +```bash +yarn add @react-native-ohos/react-native-image-crop-picker ``` -yarn add @react-native-oh-tpl/react-native-image-crop-picker -``` + + The following code shows the basic use scenario of the repository: @@ -786,27 +787,128 @@ const styles = StyleSheet.create({ export default ImageCropPickDemo; ``` -## Use Codegen +## 2. Manual Link -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). +This step provides guidance for manually configuring native dependencies. -## Link +Open the `harmony` directory of the HarmonyOS project in DevEco Studio. -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +### 2.1 Overrides RN SDK -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +To ensure the project relies on the same version of the RN SDK, you need to add an `overrides` field in the project's root `oh-package.json5` file, specifying the RN SDK version to be used. The replacement version can be a specific version number, a semver range, or a locally available HAR package or source directory. -``` -Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project +For more information about the purpose of this field, please refer to the [official documentation](https://developer.huawei.com/consumer/en/doc/harmonyos-guides-V5/ide-oh-package-json5-V5#en-us_topic_0000001792256137_overrides). + +```json { - ... "overrides": { - "@rnoh/react-native-openharmony" : "./react_native_openharmony" + "@rnoh/react-native-openharmony": "^0.72.38" // ohpm 在线版本 + // "@rnoh/react-native-openharmony" : "./react_native_openharmony.har" // 指向本地 har 包的路径 + // "@rnoh/react-native-openharmony" : "./react_native_openharmony" // 指向源码路径 } } ``` -### 1. Configuration Entry +### 2.2 Introducing Native Code + +- Use the HAR file. +- Directly link to the source code。 + +Method 1 (recommended): Use the HAR file. + +> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library. + +Open `entry/oh-package.json5` file and add the following dependencies: + +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/react-native-image-crop-picker": "file:../../node_modules/@react-native-ohos/react-native-image-crop-picker/harmony/image_crop_picker.har" + } +``` + +Click the `sync` button in the upper right corner. + +Alternatively, run the following instruction on the terminal: + +``` +cd entry +ohpm install +``` + +Method 2: Directly link to the source code. + +> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md). + +### 2.3 Configuring CMakeLists and Introducing RNFSPackage + +> [!TIP] Required for version `0.40.4` and above + +Open `entry/src/main/cpp/CMakeLists.txt` and add the following code: + +```diff +project(rnapp) +cmake_minimum_required(VERSION 3.4.1) +set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}") ++ set(OH_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules") +set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp") + +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-ohos/react-native-image-crop-picker/src/main/cpp" ./image-crop-picker) +# RNOH_END: manual_package_linking_1 + +add_library(rnoh_app SHARED + ${GENERATED_CPP_FILES} ++ ${IMAGE_CROP_PICKER_CPP_FILES} + "./PackageProvider.cpp" + "${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp" +) + +target_link_libraries(rnoh_app PUBLIC rnoh) + +# RNOH_BEGIN: manual_package_linking_2 +target_link_libraries(rnoh_app PUBLIC rnoh_sample_package) ++ target_link_libraries(rnoh_app PUBLIC rnoh_image_crop_picker) +# RNOH_END: manual_package_linking_2 +``` + +Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code: + +```diff +#include "RNOH/PackageProvider.h" +#include "SamplePackage.h" ++ #include "ImageCropPickerPackage.h" + +using namespace rnoh; + +std::vector> PackageProvider::getPackages(Package::Context ctx) { + return { + std::make_shared(ctx), ++ std::make_shared(ctx), + }; +} +``` + +### 2.4. Introducing FsPackage to ArkTS + +Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: + +```diff + ... ++ import { ImageCropPickerPackage } from '@react-native-ohos/react-native-image-crop-picker/ts'; + +export function createRNPackages(ctx: RNPackageContext): RNPackage[] { + return [ + new SamplePackage(ctx), ++ new ImageCropPickerPackage(ctx), + ]; +} +``` + +### 2.5. Configuration Entry **(1)Create ImageEditAbility.ets under entry/src/main/ets/entryability** @@ -878,7 +980,7 @@ export default class ImageEditAbility extends UIAbility { **(3)Create entry/src/main/ets/pages under ImageEdit.ets** ``` -import { ImageEditInfo } from '@react-native-oh-tpl/react-native-image-crop-picker'; +import { ImageEditInfo } from '@react-native-ohos/react-native-image-crop-picker'; @Entry @Component @@ -907,53 +1009,7 @@ struct ImageEdit { } ``` -### 2. Introducing Native Code - -Currently, two methods are available: - -Method 1 (recommended): Use the HAR file. - -> [!TIP] The HAR file is stored in the `harmony` directory in the installation path of the third-party library. - -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-image-crop-picker": "file:../../node_modules/@react-native-oh-tpl/react-native-image-crop-picker/harmony/image_crop_picker.har" - } -``` - -Click the `sync` button in the upper right corner. - -Alternatively, run the following instruction on the terminal: - -``` -cd entry -ohpm install -``` - -Method 2: Directly link to the source code. - -> [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md). - -### 3. Introducing ImageCropPickerPackage to ArkTS - -Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: - -```diff - ... -+ import { ImageCropPickerPackage } from '@react-native-oh-tpl/react-native-image-crop-picker/ts'; - -export function createRNPackages(ctx: RNPackageContext): RNPackage[] { - return [ - new SamplePackage(ctx), -+ new ImageCropPickerPackage(ctx), - ]; -} -``` - -### 4. Running +### 2.6. Running Click the `sync` button in the upper right corner. @@ -966,15 +1022,15 @@ ohpm install Then build and run the code. -## Constraints +## 3. Constraints -### Compatibility +### 3.1. Compatibility 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-image-crop-picker Releases ](https://github.com/react-native-oh-library/react-native-image-crop-picker/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-image-crop-picker Releases ](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/releases) -## API +## 4. API > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -988,7 +1044,7 @@ Check the release version information in the release address of the third-party | cleanSingle | Delete a single cache file | function | no | iOS/Android | yes | | openCamera | Select from camera | function | no | iOS/Android | yes | -## Properties +## 5. Properties > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -1038,7 +1094,7 @@ Check the release version information in the release address of the third-party | cropperCancelColor (iOS only) | string (default tint `iOS` color ) | HEX format color for the Cancel button. Default value is the default tint iOS color [controlled by TOCropViewController](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2FTimOliver%2FTOCropViewController%2Fblob%2Fa942414508012b13102f776eb65dac655f31cabb%2FObjective-C%2FTOCropViewController%2FViews%2FTOCropToolbar.m%23L433) | no | iOS | yes | | cropperRotateButtonsHidden (iOS only) | bool (default false) | Enable or disable cropper rotate buttons | no | iOS | yes | -## Known Issues +## 6. Known Issues - [ ] Images in react-native-image-crop-picker will always fill the mask space [#4](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/4) - [ ] Change the color of ActiveWidget in Android Demo [#5](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/5) @@ -1057,8 +1113,8 @@ Check the release version information in the release address of the third-party - [ ] @ohos.multimedia.image cannot perform circular cropping [#46](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/46) - [ ] The PackingOption in @ohos.multimedia.image cannot set width and height properties [#47](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/47) -## Others +## 7. Others -## License +## 8. License -This project is licensed under [The MIT License (MIT)](https://github.com/ivpusic/react-native-image-crop-picker/blob/master/LICENSE). +This project is licensed under [The MIT License (MIT)](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/blob/master/LICENSE). diff --git a/zh-cn/react-native-image-crop-picker.md b/zh-cn/react-native-image-crop-picker.md index 79b0a669..ac2013fd 100644 --- a/zh-cn/react-native-image-crop-picker.md +++ b/zh-cn/react-native-image-crop-picker.md @@ -1,38 +1,36 @@ -> 模板版本:v0.2.2 +>模板版本:v0.3.0

react-native-image-crop-picker

-

- - Supported platforms - - - License - -

-> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-image-crop-picker) +本项目基于 [react-native-image-crop-picker@0.40.3](https://github.com/ivpusic/react-native-image-crop-picker) 开发。 -## 安装与使用 +| Version | Package Name | Repository | Release | +| --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| <= 0.40.3-0.0.14@deprecated | @react-native-oh-tpl/react-native-image-crop-picker | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-image-crop-picker) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-image-crop-picker/releases) | +| >= 0.40.4 | @react-native-ohos/react-native-image-crop-picker | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/releases) | -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-image-crop-picker Releases ](https://github.com/react-native-oh-library/react-native-image-crop-picker/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +## 1.安装与使用 进入到工程目录并输入以下命令: -> [!TIP] #处替换为tgz包的路径 + + #### **npm** -``` -npm install @react-native-oh-tpl/react-native-image-crop-picker +```bash +npm install @react-native-ohos/react-native-image-crop-picker ``` #### **yarn** +```bash +yarn add @react-native-ohos/react-native-image-crop-picker ``` -yarn add @react-native-oh-tpl/react-native-image-crop-picker -``` + + 下面的代码展示了这个库的基本使用场景: @@ -787,27 +785,132 @@ const styles = StyleSheet.create({ export default ImageCropPickDemo; ``` -## 使用 Codegen +## 2. Manual Link -本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 +此步骤为手动配置原生依赖项的指导。 -## Link +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +### 2.1. Overrides RN SDK -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 harmony +为了让工程依赖同一个版本的 RN SDK,需要在工程根目录的 `oh-package.json5` 添加 overrides 字段,指向工程需要使用的 RN SDK 版本。替换的版本既可以是一个具体的版本号,也可以是一个模糊版本,还可以是本地存在的 HAR 包或源码目录。 -``` -在工程根目录的 oh-package.json5 添加 overrides字段 +关于该字段的作用请阅读[官方说明](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/ide-oh-package-json5-V5#zh-cn_topic_0000001792256137_overrides) + +```json { - ... "overrides": { - "@rnoh/react-native-openharmony" : "./react_native_openharmony" + "@rnoh/react-native-openharmony": "^0.72.38" // ohpm 在线版本 + // "@rnoh/react-native-openharmony" : "./react_native_openharmony.har" // 指向本地 har 包的路径 + // "@rnoh/react-native-openharmony" : "./react_native_openharmony" // 指向源码路径 + } +} +``` + +### 2.2. 引入原生端代码 + +目前有两种方法: + +- 通过 har 包引入(推荐) +- 直接链接源码。 + +方法一:通过 har 包引入 + +> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 + +打开 `entry/oh-package.json5`,添加以下依赖 + +```json +"dependencies": { + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/react-native-image-crop-picker": "file:../../node_modules/@react-native-ohos/react-native-image-crop-picker/harmony/image_crop_picker.har" } +``` + +点击右上角的 `sync` 按钮 + +或者在终端执行: + +``` +cd entry +ohpm install +``` + +方法二:直接链接源码 + +> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/link-source-code.md) + +### 2.3. 配置 CMakeLists 和引入 ImageCropPickerPackage + +> [!TIP] 版本 `0.40.4` 及以上需要 + +打开 `entry/src/main/cpp/CMakeLists.txt`,添加: + +```diff +project(rnapp) +cmake_minimum_required(VERSION 3.4.1) +set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}") ++ set(OH_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules") +set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp") + +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-ohos/react-native-image-crop-picker/src/main/cpp" ./image-crop-picker) +# RNOH_END: manual_package_linking_1 + +add_library(rnoh_app SHARED + ${GENERATED_CPP_FILES} ++ ${IMAGE_CROP_PICKER_CPP_FILES} + "./PackageProvider.cpp" + "${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp" +) + +target_link_libraries(rnoh_app PUBLIC rnoh) + +# RNOH_BEGIN: manual_package_linking_2 +target_link_libraries(rnoh_app PUBLIC rnoh_sample_package) ++ target_link_libraries(rnoh_app PUBLIC rnoh_image_crop_picker) +# RNOH_END: manual_package_linking_2 +``` + +打开 `entry/src/main/cpp/PackageProvider.cpp`,添加: + +```diff +#include "RNOH/PackageProvider.h" +#include "SamplePackage.h" ++ #include "ImageCropPickerPackage.h" + +using namespace rnoh; + +std::vector> PackageProvider::getPackages(Package::Context ctx) { + return { + std::make_shared(ctx), ++ std::make_shared(ctx), + }; +} +``` + +### 2.4. 在 ArkTs 侧引入 ImageCropPickerPackage + +打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: + +```diff + ... ++ import { ImageCropPickerPackage } from '@react-native-ohos/react-native-image-crop-picker/ts'; + +export function createRNPackages(ctx: RNPackageContext): RNPackage[] { + return [ + new SamplePackage(ctx), ++ new ImageCropPickerPackage(ctx), + ]; } ``` -### 1.配置Entry + + +### 2.5. 配置Entry **(1)在 entry/src/main/ets/entryability 下创建 ImageEditAbility.ets** @@ -879,7 +982,7 @@ export default class ImageEditAbility extends UIAbility { **(3)在 entry/src/main/ets/pages 下创建 ImageEdit.ets** ``` -import { ImageEditInfo } from '@react-native-oh-tpl/react-native-image-crop-picker'; +import { ImageEditInfo } from '@react-native-ohos/react-native-image-crop-picker'; @Entry @Component @@ -908,56 +1011,7 @@ struct ImageEdit { } ``` -### 2.引入原生端代码 - -目前有两种方法: - -1. 通过 har 包引入。 -2. 直接链接源码。 - -方法一:通过 har 包引入 - -> [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 - -打开 `entry/oh-package.json5`,添加以下依赖 - -``` -"dependencies": { - "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-image-crop-picker": "file:../../node_modules/@react-native-oh-tpl/react-native-image-crop-picker/harmony/image_crop_picker.har" - } -``` - -点击右上角的 `sync` 按钮 - -或者在终端执行: - -``` -cd entry -ohpm install -``` - -方法二:直接链接源码 - -> [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/link-source-code.md) - -### 3.在 ArkTs 侧引入 ImageCropPickerPackage - -打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: - -```diff - ... -+ import { ImageCropPickerPackage } from '@react-native-oh-tpl/react-native-image-crop-picker/ts'; - -export function createRNPackages(ctx: RNPackageContext): RNPackage[] { - return [ - new SamplePackage(ctx), -+ new ImageCropPickerPackage(ctx), - ]; -} -``` - -### 4.运行 +### 2.6. 运行 点击右上角的 `sync` 按钮 @@ -970,15 +1024,15 @@ ohpm install 然后编译、运行即可。 -## 约束与限制 +## 3. 约束与限制 -### 兼容性 +### 3.1. 兼容性 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-image-crop-picker Releases ](https://github.com/react-native-oh-library/react-native-image-crop-picker/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-image-crop-picker Releases ](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/releases) -## API +## 4. API > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -992,7 +1046,7 @@ ohpm install | cleanSingle | Delete a single cache file | function | no | iOS/Android | yes | | openCamera | Select from camera | function | no | iOS/Android | yes | -## 属性 +## 5. 属性 > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -1042,7 +1096,7 @@ ohpm install | cropperCancelColor (iOS only) | string (default tint `iOS` color ) | HEX format color for the Cancel button. Default value is the default tint iOS color [controlled by TOCropViewController](https://gitee.com/link?target=https%3A%2F%2Fgithub.com%2FTimOliver%2FTOCropViewController%2Fblob%2Fa942414508012b13102f776eb65dac655f31cabb%2FObjective-C%2FTOCropViewController%2FViews%2FTOCropToolbar.m%23L433) | no | iOS | yes | | cropperRotateButtonsHidden (iOS only) | bool (default false) | Enable or disable cropper rotate buttons | no | iOS | yes | -## 遗留问题 +## 6. 遗留问题 - [ ] react-native-image-crop-picker 图像将始终填充蒙版空间 [#4](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/4) - [ ] Android Demo中 ActiveWidget 改变颜色 [#5](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/5) @@ -1061,8 +1115,8 @@ ohpm install - [ ] @ohos.multimedia.image无法进行圆形效果裁切 [#46](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/46) - [ ] @ohos.multimedia.image中PackingOption无法设置宽高属性 [#47](https://github.com/react-native-oh-library/react-native-image-crop-picker/issues/47) -## 其他 +## 7. 其他 -## 开源协议 +## 8. 开源协议 -本项目基于 [The MIT License (MIT)](https://github.com/ivpusic/react-native-image-crop-picker/blob/master/LICENSE) ,请自由地享受和参与开源。 +本项目基于 [The MIT License (MIT)](https://gitee.com/openharmony-sig/rntpc_react-native-image-crop-picker/blob/master/LICENSE) ,请自由地享受和参与开源。 -- Gitee