diff --git a/en/react-native-blob-util.md b/en/react-native-blob-util.md index 2aac0cc221c6d38d2d268eee34f4d68cbeed3830..a2d297d8d580c68c4484d4c213b78e9c1fb36fb7 100644 --- a/en/react-native-blob-util.md +++ b/en/react-native-blob-util.md @@ -1,45 +1,33 @@ -> Template version: v0.2.2 +> Template version: v0.4.0

react-native-blob-util

-

- - Supported platforms - - - License - - -

- -> [!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) | +This project is based on [react-native-blob-util](https://github.com/react-native-oh-library/react-native-blob-util) 。 -## Installation and Usage +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` The version correspondence details are as follows: +| Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | +| ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | +| @react-native-ohos/react-native-blob-util | 0.23.2 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | 0.82 | No | API12+ | 0.22.2 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-ohos/react-native-blob-util | 0.22.2 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | 0.77 | No | API12+ | 0.22.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-ohos/react-native-blob-util | 0.19.8 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) | 0.72 | Yes | API12+ | 0.19.6-0.0.14 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-oh-tpl/react-native-blob-util | <= 0.19.7@deprecated | [Github Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) | 0.72 | No | API12+ | 0.19.6-0.0.14 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-blob-util) | -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. +## 1. Installation and Usage Go to the project directory and execute the following instruction: - - -#### **npm** +#### npm ```bash npm install @react-native-ohos/react-native-blob-util ``` -#### **yarn** +#### yarn ```bash yarn add @react-native-ohos/react-native-blob-util @@ -51,7 +39,8 @@ The following code shows the basic use scenario of the repository: > [!WARNING] The name of the imported repository remains unchanged. -```js +```tsx + import React, { useState } from "react"; import { ScrollView, @@ -399,38 +388,43 @@ 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. +## 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). +| | Supported Autolink | Supported RN Version | +|--------------------------------------|--------------|--------| +| ~0.23.2 | No | 0.82 | +| ~0.22.1 | No | 0.77 | +| ~0.19.8 | Yes | 0.72 | +| <= 0.19.7@deprecated | No | 0.72 | -## Link +Projects using AutoLink need to be configured according to this document, AutoLink framework guide.:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -Version >= @react-native-ohos/react-native-blob-util@0.19.8 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 +If the version you are using supports Autolink and the project has integrated Autolink, you can skip the ManualLink configuration. -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. +
+ ManualLink: This step provides guidance for manually configuring native dependencies. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. -### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project +### 2.1. Overrides RN SDK -``` +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. + +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": "file:../react_native_openharmony" } } ``` -### 2. Introducing Native Code +### 2.2. Introducing Native Code Currently, two methods are available: -1. Use the HAR file (this method will be deprecated once the IDE supports the relevant functionality and is preferred currently). -2. Directly link to the source code. +- Use the HAR file. +- Directly link to the source code。 Method 1 (recommended): Use the HAR file. @@ -440,9 +434,9 @@ 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-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" - } + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", + "@react-native-ohos/react-native-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" +} ``` Click the `sync` button in the upper right corner. @@ -458,11 +452,47 @@ Method 2: Directly link to the source code. > [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md). -### 3.Introducing BlobUtilPackage to ArkTS +### 2.3. Configuring CMakeLists and Introducing BlobUtilPackage + +> If you are using version <= 0.19.7, please skip this chapter. + +Open `entry/src/main/cpp/CMakeLists.txt` and add the following code: + +```diff ++ set(OH_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules") + +# RNOH_BEGIN: manual_package_linking_1 ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-blob-util/src/main/cpp" ./blob-util) +# RNOH_END: manual_package_linking_1 + +# RNOH_BEGIN: manual_package_linking_2 ++ target_link_libraries(rnoh_app PUBLIC rnoh_blob_util) +# RNOH_END: manual_package_linking_2 +``` + +Open `entry/src/main/cpp/PackageProvider.cpp` and add the following code: + +```diff +#include "RNOH/PackageProvider.h" +#include "generated/RNOHGeneratedPackage.h" ++ #include "BlobUtilPackage.h" + +using namespace rnoh; + +std::vector> PackageProvider::getPackages(Package::Context ctx) { + return { + std::make_shared(ctx), ++ std::make_shared(ctx), + }; +} +``` + +### 2.4. Introducing BlobUtilPackage to ArkTS Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: ```diff + ... + import {BlobUtilPackage} from '@react-native-ohos/react-native-blob-util/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { @@ -471,8 +501,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 4.Running +### 2.5. Running Click the `sync` button in the upper right corner. @@ -485,18 +516,17 @@ 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. +This document is verified based on the following versions: -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) -The content of this document has been verified based on 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; -1. RNOH: 0.72.98; SDK: HarmonyOS-5.0.0(API12); IDE: DevEco Studio 5.0.3.906; ROM: NEXT.0.0.71; -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; -## APIs +## 4. API > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -597,12 +627,13 @@ The content of this document has been verified based on the following versions: | base64 | Enables Base64 encoding and decoding.| Function | No | iOS/Android | yes | | session | Manages cache files. | Function | No | iOS/Android | yes | -## Known Issues - - [ ] An error occurs when **blob-util** uses **getCookies** and **removeCookies** on Android, iOS, and HarmonyOS: [issue#381](https://github.com/RonRadtke/react-native-blob-util/issues/381). +## 5. Known Issues + +- [ ] An error occurs when **blob-util** uses **getCookies** and **removeCookies** on Android, iOS, and HarmonyOS: [issue#381](https://github.com/RonRadtke/react-native-blob-util/issues/381). -## Others +## 6. Others -## License +## 7. License This project is licensed under [The MIT License (MIT)](https://github.com/RonRadtke/react-native-blob-util/blob/master/LICENSE). diff --git a/zh-cn/react-native-blob-util.md b/zh-cn/react-native-blob-util.md index 063dbd24dbfc347a319b6f13ee53765ab82e5166..9a60509f02be895496922d0ecedbaa75c042a433 100644 --- a/zh-cn/react-native-blob-util.md +++ b/zh-cn/react-native-blob-util.md @@ -1,41 +1,33 @@ -> 模板版本:v0.2.2 +> 模板版本:v0.4.0

react-native-blob-util

-

- - Supported platforms - - - License - - -

- -> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-blob-util) -该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-blob-util`,具体版本所属关系如下: +本项目基于 [react-native-blob-util](https://github.com/react-native-oh-library/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) | - -## 安装与使用 +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-blob-util` 版本所属关系如下: +| 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 | +| ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | +| @react-native-ohos/react-native-blob-util | 0.23.2 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | 0.82 | 否 | API12+ | 0.22.2 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-ohos/react-native-blob-util | 0.22.2 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-orientation-locker/releases) | 0.77 | 否 | API12+ | 0.22.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-ohos/react-native-blob-util | 0.19.8 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-blob-util/releases) | 0.72 | 是 | API12+ | 0.19.6-0.0.14 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-blob-util) | +| @react-native-oh-tpl/react-native-blob-util | <= 0.19.7@deprecated | [Github Releases](https://github.com/react-native-oh-library/react-native-blob-util/releases) | 0.72 | 否 | API12+ | 0.19.6-0.0.14 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-blob-util) | + +## 1. 安装与使用 进入到工程目录并输入以下命令: -#### **npm** +#### npm ```bash npm install @react-native-ohos/react-native-blob-util ``` -#### **yarn** +#### yarn ```bash yarn add @react-native-ohos/react-native-blob-util @@ -47,7 +39,8 @@ yarn add @react-native-ohos/react-native-blob-util > [!WARNING] 使用时 import 的库名不变。 -```js +```tsx + import React, { useState } from "react"; import { ScrollView, @@ -395,57 +388,60 @@ const styles = StyleSheet.create({ }); ``` -## 使用 Codegen -Version >= @react-native-ohos/react-native-blob-util@0.19.8,已适配codegen-lib生成桥接代码。 +## 2. Link -> [!TIP] V0.19.6 需使用 Codegen。 +| | 是否支持autolink | RN框架版本 | +|-----------------------|--------------|--------| +| ~0.23.2 | No | 0.82 | +| ~0.22.1 | No | 0.77 | +| ~0.19.8 | Yes | 0.72 | +| <= 0.19.7@deprecated | No | 0.72 | -本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md -## Link +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -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 +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 -Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +### 2.1. Overrides RN SDK -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +为了让工程依赖同一个版本的 RN SDK,需要在工程根目录的 `oh-package.json5` 添加 overrides 字段,指向工程需要使用的 RN SDK 版本。替换的版本既可以是一个具体的版本号,也可以是一个模糊版本,还可以是本地存在的 HAR 包或源码目录。 -### 1.在工程根目录的 `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": "file:../react_native_openharmony" } } ``` -### 2.引入原生端代码 +### 2.2. 引入原生端代码 目前有两种方法: -1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法); -2. 直接链接源码。 +- 通过 har 包引入; +- 直接链接源码。 -方法一:通过 har 包引入 +方法一:通过 har 包引入(推荐) > [!TIP] har 包位于三方库安装路径的 `harmony` 文件夹下。 打开 `entry/oh-package.json5`,添加以下依赖 - ```json "dependencies": { - "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-ohos/react-native-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" - } + "@rnoh/react-native-openharmony": "file:../react_native_openharmony", +"@react-native-ohos/react-native-blob-util": "file:../../node_modules/@react-native-ohos/react-native-blob-util/harmony/blobUtil.har" +} ``` 点击右上角的 `sync` 按钮 -或者在终端执行: +或者在命令行终端执行: ```bash cd entry @@ -456,47 +452,22 @@ ohpm install > [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md) -### 3.配置 CMakeLists 和引入 BlobUtilPackage +### 2.3. 配置 CMakeLists 和引入 BlobUtilPackage +> 若使用的是 <= 0.19.7 版本,请跳过本章。 打开 `entry/src/main/cpp/CMakeLists.txt`,添加: ```diff -project(rnapp) -cmake_minimum_required(VERSION 3.4.1) -set(CMAKE_SKIP_BUILD_RPATH TRUE) -set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}") -set(NODE_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../node_modules") + set(OH_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules") -set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp") -set(LOG_VERBOSITY_LEVEL 1) -set(CMAKE_ASM_FLAGS "-Wno-error=unused-command-line-argument -Qunused-arguments") -set(CMAKE_CXX_FLAGS "-fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie") -set(WITH_HITRACE_SYSTRACE 1) # for other CMakeLists.txt files to use -add_compile_definitions(WITH_HITRACE_SYSTRACE) - -add_subdirectory("${RNOH_CPP_DIR}" ./rn) - -# RNOH_BEGIN: rnoh_blob_util -add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) +# RNOH_BEGIN: manual_package_linking_1 + add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-blob-util/src/main/cpp" ./blob-util) +# RNOH_END: manual_package_linking_1 -# RNOH_END: rnoh_blob_util - -file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") - -add_library(rnoh_app SHARED - ${GENERATED_CPP_FILES} - "./PackageProvider.cpp" - "${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp" -) -target_link_libraries(rnoh_app PUBLIC rnoh) - -# RNOH_BEGIN: rnoh_blob_util -target_link_libraries(rnoh_app PUBLIC rnoh_sample_package) +# RNOH_BEGIN: manual_package_linking_2 + target_link_libraries(rnoh_app PUBLIC rnoh_blob_util) -# RNOH_END: rnoh_blob_util +# RNOH_END: manual_package_linking_2 ``` 打开 `entry/src/main/cpp/PackageProvider.cpp`,添加: @@ -504,7 +475,6 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package) ```diff #include "RNOH/PackageProvider.h" #include "generated/RNOHGeneratedPackage.h" -#include "SamplePackage.h" + #include "BlobUtilPackage.h" using namespace rnoh; @@ -512,18 +482,17 @@ using namespace rnoh; std::vector> PackageProvider::getPackages(Package::Context ctx) { return { std::make_shared(ctx), - std::make_shared(ctx), + std::make_shared(ctx), }; } ``` -### 4.在 ArkTs 侧引入 BlobUtilPackage +### 2.4. 在 ArkTs 侧引入 BlobUtilPackage 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: ```diff - + ... + import {BlobUtilPackage} from '@react-native-ohos/react-native-blob-util/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { @@ -532,12 +501,13 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +### 2.5. 运行 点击右上角的 `sync` 按钮 -或者在终端执行: +或者在命令行终端执行: ```bash cd entry @@ -546,19 +516,17 @@ ohpm install 然后编译、运行即可。 -## 约束与限制 - -### 兼容性 - -要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 +## 3. 约束与限制 +### 3.1. 兼容性 本文档内容基于以下版本验证通过: -1. RNOH: 0.72.98; SDK: HarmonyOS-5.0.0(API12); IDE: DevEco Studio 5.0.3.906; ROM: NEXT.0.0.71; -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; +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 +## 4. API > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -660,10 +628,12 @@ ohpm install | base64 | 使用base64编码解码| Function | No | iOS/Android | yes | | session | 用于管理缓存文件 | Function | No | iOS/Android | yes | -## 遗留问题 +## 5. 遗留问题 + - [ ] blob-util在使用getCookies、removeCookies 在Android、iOS、Harmony OS 上使用都会报错: [issue#381](https://github.com/RonRadtke/react-native-blob-util/issues/381) -## 其他 -## 开源协议 +## 6. 其他 + +## 7. 开源协议 -本项目基于 [The MIT License (MIT)](https://github.com/RonRadtke/react-native-blob-util/blob/master/LICENSE) ,请自由地享受和参与开源。 \ No newline at end of file +本项目基于 [The MIT License (MIT)](https://github.com/RonRadtke/react-native-blob-util/blob/master/LICENSE) ,请自由地享受和参与开源。