From 092e7b3b61534ae20839c85c919b899246114079 Mon Sep 17 00:00:00 2001 From: zwx1424937 Date: Sat, 13 Dec 2025 18:24:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IDCR1N]=20=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=BA=93=E9=80=82=E9=85=8Dcli=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=96=87=E6=A1=A3=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zwx1424937 --- en/react-native-context-menu-view.md | 17 +++++++++--- en/react-native-cookies-cookies.md | 18 +++++++++--- en/react-native-create-thumbnail.md | 18 ++++++++---- en/react-native-custom-keyboard.md | 20 +++++++++---- en/react-native-default-preference.md | 22 +++++++++------ en/react-native-device-info.md | 20 +++++++++---- en/react-native-doc-viewer.md | 24 ++++++++++------ en/react-native-document-picker.md | 34 ++++++++++++++--------- en/react-native-email-link.md | 21 +++++++++----- en/react-native-exception-handler.md | 20 +++++++++---- en/react-native-exit-app.md | 20 +++++++++---- en/react-native-fast-image.md | 18 ++++++++---- en/react-native-file-access.md | 21 +++++++++----- en/react-native-file-selector.md | 21 +++++++++----- en/react-native-file-viewer.md | 21 +++++++++----- en/react-native-fileupload.md | 20 +++++++++---- en/react-native-fingerprint-scanner.md | 21 +++++++++----- zh-cn/react-native-context-menu-view.md | 16 ++++++++--- zh-cn/react-native-cookies-cookies.md | 17 ++++++++++-- zh-cn/react-native-create-thumbnail.md | 18 ++++++++---- zh-cn/react-native-custom-keyboard.md | 18 ++++++++---- zh-cn/react-native-default-preference.md | 18 ++++++++---- zh-cn/react-native-device-info.md | 19 +++++++++---- zh-cn/react-native-doc-viewer.md | 22 ++++++++++----- zh-cn/react-native-document-picker.md | 31 +++++++++++++-------- zh-cn/react-native-email-link.md | 18 ++++++++---- zh-cn/react-native-exception-handler.md | 18 ++++++++---- zh-cn/react-native-exit-app.md | 18 ++++++++---- zh-cn/react-native-fast-image.md | 17 +++++++++--- zh-cn/react-native-file-access.md | 18 ++++++++---- zh-cn/react-native-file-selector.md | 18 ++++++++---- zh-cn/react-native-file-viewer.md | 19 +++++++++---- zh-cn/react-native-fileupload.md | 18 ++++++++---- zh-cn/react-native-fingerprint-scanner.md | 22 ++++++++++----- 34 files changed, 476 insertions(+), 205 deletions(-) diff --git a/en/react-native-context-menu-view.md b/en/react-native-context-menu-view.md index 1d2029e9..4d905dd6 100644 --- a/en/react-native-context-menu-view.md +++ b/en/react-native-context-menu-view.md @@ -69,11 +69,19 @@ const Example = () => { ## Link -Version >= @react-native-ohos/react-native-context-menu-view@1.16.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.19.1 | No | 0.77 | +| ~1.16.1 | Yes | 0.72 | +| <= 1.16.0-0.0.6@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -192,8 +200,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-cookies-cookies.md b/en/react-native-cookies-cookies.md index e8b3c4d7..0e639915 100644 --- a/en/react-native-cookies-cookies.md +++ b/en/react-native-cookies-cookies.md @@ -196,10 +196,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/cookies@6.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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~6.3.0 | No | 0.77 | +| ~6.2.2 | Yes | 0.72 | +| <= 6.2.1-0.0.8@deprecated | No | 0.72 | -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. + +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -313,8 +322,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-create-thumbnail.md b/en/react-native-create-thumbnail.md index f2c3baac..30825eec 100644 --- a/en/react-native-create-thumbnail.md +++ b/en/react-native-create-thumbnail.md @@ -149,12 +149,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/react-native-create-thumbnail@2.0.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~2.1.0 | No | 0.77 | +| ~2.0.1 | Yes | 0.72 | +| <= 2.0.0-0.0.4@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -289,8 +296,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-custom-keyboard.md b/en/react-native-custom-keyboard.md index d62528cd..d5dec03c 100644 --- a/en/react-native-custom-keyboard.md +++ b/en/react-native-custom-keyboard.md @@ -159,17 +159,24 @@ const styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/react-native-custom-keyboard@1.0.4, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-custom-keyboard@1.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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.1.0 | No | 0.77 | +| ~1.0.4 | Yes | 0.72 | +| <= 1.0.3-0.0.2@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -294,8 +301,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-default-preference.md b/en/react-native-default-preference.md index c86e427f..1d41ab12 100644 --- a/en/react-native-default-preference.md +++ b/en/react-native-default-preference.md @@ -79,19 +79,24 @@ export default App; ## Use Codegen -Version >= @react-native-ohos/react-native-default-preference@1.4.5, compatible with codegen-lib for generating bridge code. - -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-default-preference@1.4.5 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.5.0 | No | 0.77 | +| ~1.4.5 | Yes | 0.72 | +| <= 1.4.4-0.0.1@deprecated | No | 0.72 | + +Using AutoLink need to be configured according to this document, 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. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -214,8 +219,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-device-info.md b/en/react-native-device-info.md index 1cf6e435..c145f89d 100644 --- a/en/react-native-device-info.md +++ b/en/react-native-device-info.md @@ -161,17 +161,24 @@ export default App; ``` ## Use Codegen -Version >= @react-native-ohos/react-native-device-info@11.1.1, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-device-info@11.1.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~14.0.5 | No | 0.77 | +| ~11.1.1 | Yes | 0.72 | +| <= 11.1.0-0.0.8@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -273,8 +280,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-doc-viewer.md b/en/react-native-doc-viewer.md index b7c0eb9f..9722dfd7 100644 --- a/en/react-native-doc-viewer.md +++ b/en/react-native-doc-viewer.md @@ -337,17 +337,24 @@ export default class DocumentViewerExample extends Component { ## Use Codegen -Version >= @react-native-ohos/react-native-doc-viewer@2.7.9, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-doc-viewer@2.7.9 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~2.8.0 | No | 0.77 | +| ~2.7.9 | Yes | 0.72 | +| <= 2.7.8-0.0.2@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -409,7 +416,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` -### Configuring CMakeLists and Introducing RNAudioRecorderPlayerPackage +### 4.Configuring CMakeLists and Introducing RNAudioRecorderPlayerPackage > If you are using version <= 2.7.8-0.0.2, please skip this chapter. @@ -470,7 +477,7 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` -### Introducing DocViewPackage to ArkTS +### 5.Introducing DocViewPackage to ArkTS Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: @@ -484,8 +491,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 4. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-document-picker.md b/en/react-native-document-picker.md index ff8e8c05..59c0065b 100644 --- a/en/react-native-document-picker.md +++ b/en/react-native-document-picker.md @@ -312,14 +312,21 @@ const styles = StyleSheet.create({ }); ``` -## 2. Manual Link +## 2. Link -Version >= @react-native-ohos/react-native-document-picker@9.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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~9.3.2 | No | 0.77 | +| ~9.2.2 | Yes | 0.72 | +| <= 9.2.0-0.0.2@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 2.1 Overrides RN SDK @@ -416,8 +423,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 2.4 Running +## 3. Running Click the `sync` button in the upper right corner. @@ -430,8 +438,8 @@ ohpm install Then build and run the code. -## 3. Constraints -### 3.1 Compatibility +## 4. Constraints +### 4.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. @@ -442,7 +450,7 @@ Verified in the following versions. 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. Properties +## 5. Properties > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -459,7 +467,7 @@ Parameters of the option pick Method | transitionStyle | Configure the transition style of the picker. Defaults to coverVertical. | 'coverVertical' \| 'flipHorizontal' \| 'crossDissolve' \| 'partialCurl' | no | IOS | no | | mode | Defaults to import. If mode is set to import the document picker imports the file from outside to inside the sandbox, otherwise if mode is set to open the document picker opens the file in-place. | "import" \| "open" | no | IOS | no | -## 5. API +## 6. API > [!TIP] The **Platform** column indicates the platform where the properties are supported in the original third-party library. @@ -476,15 +484,15 @@ Parameters of the option pick Method | types | File type object. eg type.images、types.pdf | function | No | IOS/Android | yes | | perPlatformTypes | Different platforms, file type object map | function | No | IOS/Android | yes | -## 6. Known Issues +## 7. Known Issues - [ ] The **pickerOpt. selectMode** API is invalid when it is set to **FOLDER** on HarmonyOS: [issue#1](https://github.com/react-native-oh-library/document-picker/issues/1). - [ ] **releaseSecureAccess** cannot be used to select files outside the sandbox path. This API is not supported on HarmonyOS: [issue#2](https://github.com/react-native-oh-library/document-picker/issues/2). -## 7. Others +## 8. Others - The Gallery resources cannot be read or written due to permission issues. Selecting files from the Gallery is not supported in Files. -## 8. License +## 9. License This project is licensed under [The MIT License (MIT)](https://github.com/react-native-documents/document-picker/blob/v9.2.0/LICENSE.md). \ No newline at end of file diff --git a/en/react-native-email-link.md b/en/react-native-email-link.md index ee0f1b63..1a05e858 100644 --- a/en/react-native-email-link.md +++ b/en/react-native-email-link.md @@ -155,18 +155,24 @@ const styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/react-native-email-link@1.15.1,compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-email-lin@1.15.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.16.2 | No | 0.77 | +| ~1.15.1 | Yes | 0.72 | +| <=1.15.0-0.0.2@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -279,8 +285,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-exception-handler.md b/en/react-native-exception-handler.md index 8de47479..e7fc9697 100644 --- a/en/react-native-exception-handler.md +++ b/en/react-native-exception-handler.md @@ -125,17 +125,24 @@ export const ReactNativeExceptionHandler = () => { ## Use Codegen -Version >= @react-native-ohos/react-native-exception-handler@2.10.11, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-exception-handler@2.10.11 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~2.11.0 | No | 0.77 | +| ~2.10.11 | Yes | 0.72 | +| <=2.10.10-0.1.7@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -256,8 +263,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-exit-app.md b/en/react-native-exit-app.md index 83904871..7fdbe9f7 100644 --- a/en/react-native-exit-app.md +++ b/en/react-native-exit-app.md @@ -81,17 +81,24 @@ export default App; ## Use Codegen -Version >= @react-native-ohos/react-native-exit-app@2.0.1, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-exit-app@2.0.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~2.1.0 | No | 0.77 | +| ~2.0.1 | Yes | 0.72 | +| <= 2.0.0-0.0.1@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -210,8 +217,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-fast-image.md b/en/react-native-fast-image.md index c40ecdf5..a6da3658 100644 --- a/en/react-native-fast-image.md +++ b/en/react-native-fast-image.md @@ -111,12 +111,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/react-native-fast-image@8.6.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/en/Autolinking.md +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~8.7.0 | No | 0.77 | +| ~8.6.4 | Yes | 0.72 | +| <= 8.6.3-0.4.17@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -235,8 +242,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-file-access.md b/en/react-native-file-access.md index 5fc0114a..17548583 100644 --- a/en/react-native-file-access.md +++ b/en/react-native-file-access.md @@ -326,18 +326,24 @@ const styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/react-native-file-access@3.1.2, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-file-access@3.1.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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~3.2.0 | No | 0.77 | +| ~3.1.2 | Yes | 0.72 | +| <=3.1.1@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -459,8 +465,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-file-selector.md b/en/react-native-file-selector.md index de6fb05a..8cce53ed 100644 --- a/en/react-native-file-selector.md +++ b/en/react-native-file-selector.md @@ -61,18 +61,24 @@ export default App; ## Use Codegen -Version >= @react-native-ohos/react-native-file-selector@1.0.3, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-file-selector@1.0.3 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.1.0 | No | 0.77 | +| ~1.0.3 | Yes | 0.72 | +| <= 1.0.2-0.0.3@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1.Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -197,8 +203,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5.Running +## Running Click the sync button in the upper right corner. diff --git a/en/react-native-file-viewer.md b/en/react-native-file-viewer.md index 4eb9ab25..8786e292 100644 --- a/en/react-native-file-viewer.md +++ b/en/react-native-file-viewer.md @@ -160,18 +160,24 @@ const styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/react-native-file-viewer@2.1.7, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-file-viewer@2.1.7 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~2.2.0 | No | 0.77 | +| ~2.1.7 | Yes | 0.72 | +| <= 2.1.6@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -292,8 +298,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-fileupload.md b/en/react-native-fileupload.md index aa930396..e1a85c05 100644 --- a/en/react-native-fileupload.md +++ b/en/react-native-fileupload.md @@ -127,17 +127,24 @@ let styles = StyleSheet.create({ ## Use Codegen -Version >= @react-native-ohos/react-native-fileupload@1.1.1, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-fileupload@1.1.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~1.2.0 | No | 0.77 | +| ~1.1.1 | Yes | 0.72 | +| <=1.1.0-0.0.2@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -259,8 +266,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/en/react-native-fingerprint-scanner.md b/en/react-native-fingerprint-scanner.md index fb4985eb..378b94f2 100644 --- a/en/react-native-fingerprint-scanner.md +++ b/en/react-native-fingerprint-scanner.md @@ -94,18 +94,24 @@ export default function App() { ## Use Codegen -Version >= @react-native-ohos/react-native-fingerprint-scanner@6.0.1, compatible with codegen-lib for generating bridge code. -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 library has been adapted for `Codegen`. Before using it, you need to proactively generate the bridge code for the third-party library. For details, please refer to the [Codegen Usage Documentation](/en/codegen.md). ## Link -Version >= @react-native-ohos/react-native-fingerprint-scanner@6.0.1 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 +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------------|----------------------| +| ~6.1.0 | No | 0.77 | +| ~6.0.1 | Yes | 0.72 | +| <= 6.0.0-0.0.4@deprecated | No | 0.72 | -This step provides guidance for manually configuring native dependencies. +Using AutoLink need to be configured according to this document, Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md. -Open the `harmony` directory of the HarmonyOS project in DevEco Studio. +If the version you use supports Autolink and the project has been connected to Autolink, skip the ManualLink configuration. +
+ ManualLink: this step is a guide to manually configure native dependencies. + +First, use DevEco Studio to open the HarmonyOS project `harmony` in the project directory. ### 1. Adding the overrides Field to oh-package.json5 File in the Root Directory of the Project @@ -225,8 +231,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5. Running +## Running Click the `sync` button in the upper right corner. diff --git a/zh-cn/react-native-context-menu-view.md b/zh-cn/react-native-context-menu-view.md index e8186807..c5021526 100644 --- a/zh-cn/react-native-context-menu-view.md +++ b/zh-cn/react-native-context-menu-view.md @@ -68,12 +68,19 @@ const Example = () => { ``` ## Link +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.19.1 | No | 0.77 | +| ~1.16.1 | Yes | 0.72 | +| <= 1.16.0-0.0.6@deprecated | No | 0.72 | -Version >= @react-native-ohos/react-native-context-menu-view@1.16.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -197,8 +204,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-cookies-cookies.md b/zh-cn/react-native-cookies-cookies.md index f3b36970..200f4ccc 100644 --- a/zh-cn/react-native-cookies-cookies.md +++ b/zh-cn/react-native-cookies-cookies.md @@ -194,9 +194,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/cookies@6.2.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~6.3.0 | No | 0.77 | +| ~6.2.2 | Yes | 0.72 | +| <= 6.2.1-0.0.8@deprecated | No | 0.72 | -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 + +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 ```json @@ -311,8 +321,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-create-thumbnail.md b/zh-cn/react-native-create-thumbnail.md index 1fb4a99b..cd671c19 100644 --- a/zh-cn/react-native-create-thumbnail.md +++ b/zh-cn/react-native-create-thumbnail.md @@ -151,12 +151,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/react-native-create-thumbnail@2.0.1,已支持 Autolink,无需手动配置,目前只支持72框架。 -Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~2.1.0 | No | 0.77 | +| ~2.0.1 | Yes | 0.72 | +| <= 2.0.0-0.0.4@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -296,8 +303,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-custom-keyboard.md b/zh-cn/react-native-custom-keyboard.md index 56f878f1..89d38b37 100644 --- a/zh-cn/react-native-custom-keyboard.md +++ b/zh-cn/react-native-custom-keyboard.md @@ -161,17 +161,24 @@ const styles = StyleSheet.create({ ## 使用 Codegen -Version >= @react-native-ohos/react-native-custom-keyboard@1.0.4,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-custom-keyboard@1.0.4,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.1.0 | No | 0.77 | +| ~1.0.4 | Yes | 0.72 | +| <= 1.0.3-0.0.2@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -296,8 +303,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-default-preference.md b/zh-cn/react-native-default-preference.md index 3b507f9d..c5a251a2 100644 --- a/zh-cn/react-native-default-preference.md +++ b/zh-cn/react-native-default-preference.md @@ -79,18 +79,25 @@ export default App; ## 使用 Codegen -Version >= @react-native-ohos/react-native-default-preference@1.4.5 ,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-default-preference@1.4.5,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.5.0 | No | 0.77 | +| ~1.4.5 | Yes | 0.72 | +| <= 1.4.4-0.0.1@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -213,8 +220,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-device-info.md b/zh-cn/react-native-device-info.md index 6168be14..7e3e8770 100644 --- a/zh-cn/react-native-device-info.md +++ b/zh-cn/react-native-device-info.md @@ -158,18 +158,24 @@ export default App; ``` ## 使用 Codegen -Version >= @react-native-ohos/react-native-device-info@11.1.1,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-device-info@11.1.1,已支持 Autolink,无需手动配置,目前只支持72框架。 -Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~14.0.5 | No | 0.77 | +| ~11.1.1 | Yes | 0.72 | +| <= 11.1.0-0.0.8@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的HarmonyOS工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -273,8 +279,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-doc-viewer.md b/zh-cn/react-native-doc-viewer.md index 10aa7027..b73d8c48 100644 --- a/zh-cn/react-native-doc-viewer.md +++ b/zh-cn/react-native-doc-viewer.md @@ -337,17 +337,24 @@ export default class DocumentViewerExample extends Component { ## 使用 Codegen -Version >= @react-native-ohos/react-native-doc-viewer@2.7.9,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-doc-viewer@2.7.9,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~2.8.0 | No | 0.77 | +| ~2.7.9 | Yes | 0.72 | +| <= 2.7.8-0.0.2@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -409,7 +416,7 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { } ``` -### 配置 CMakeLists 和引入 DocViewPackage +### 4.配置 CMakeLists 和引入 DocViewPackage > 若使用的是 <= 2.7.8-0.0.2 版本,请跳过本章。 @@ -470,7 +477,7 @@ std::vector> PackageProvider::getPackages(Package::Cont } ``` -### 在 ArkTs 侧引入 DocViewPackage +### 5.在 ArkTs 侧引入 DocViewPackage 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: @@ -484,8 +491,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 4.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-document-picker.md b/zh-cn/react-native-document-picker.md index 9dae9daa..226ae090 100644 --- a/zh-cn/react-native-document-picker.md +++ b/zh-cn/react-native-document-picker.md @@ -249,11 +249,19 @@ const styles = StyleSheet.create({ ``` -## 2. Manual Link +## 2. Link -Version >= @react-native-ohos/react-native-document-picker@9.2.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~9.3.2 | No | 0.77 | +| ~9.2.2 | Yes | 0.72 | +| <= 9.2.0-0.0.2@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 + +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 @@ -355,8 +363,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 2.4 运行 +## 3. 运行 点击右上角的 `sync` 按钮 @@ -369,8 +378,8 @@ ohpm install 然后编译、运行即可。 -## 3. 约束与限制 -### 3.1 兼容性 +## 4. 约束与限制 +### 4.1 兼容性 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 @@ -381,7 +390,7 @@ ohpm install 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. 属性 +## 5. 属性 > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -398,7 +407,7 @@ ohpm install | transitionStyle | Configure the transition style of the picker. Defaults to coverVertical. | 'coverVertical' \| 'flipHorizontal' \| 'crossDissolve' \| 'partialCurl' | no | IOS | no | | mode | Defaults to import. If mode is set to import the document picker imports the file from outside to inside the sandbox, otherwise if mode is set to open the document picker opens the file in-place. | "import" \| "open" | no | IOS | no | -## 5. API +## 6. API > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。 @@ -417,14 +426,14 @@ ohpm install | perPlatformTypes | Different platforms, file type object map | function | No | IOS/Android | yes | -## 6. 遗留问题 +## 7. 遗留问题 - [ ] HarmonyOS 端file picker selectMode设置选文件夹无效: [issue#1](https://github.com/react-native-oh-library/document-picker/issues/1) - [ ] releaseSecureAccess选择沙箱路径外文件无法实现, HarmonyOS 暂无此能力接口: [issue#2](https://github.com/react-native-oh-library/document-picker/issues/2) -## 7. 其他 +## 8. 其他 - 因权限问题无法读写图库资源,文件管理中从图库选择文件暂不支持。 -## 8. 开源协议 +## 9. 开源协议 本项目基于 [The MIT License (MIT)](https://github.com/react-native-documents/document-picker/blob/v9.2.0/LICENSE.md) ,请自由地享受和参与开源。 diff --git a/zh-cn/react-native-email-link.md b/zh-cn/react-native-email-link.md index 136a2541..39a273e7 100644 --- a/zh-cn/react-native-email-link.md +++ b/zh-cn/react-native-email-link.md @@ -154,17 +154,24 @@ const styles = StyleSheet.create({ ``` ## 使用 Codegen -Version >= @react-native-ohos/react-native-email-link@1.15.1,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-email-lin@1.15.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.16.2 | No | 0.77 | +| ~1.15.1 | Yes | 0.72 | +| <=1.15.0-0.0.2@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json` 添加 overrides 字段 @@ -281,8 +288,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-exception-handler.md b/zh-cn/react-native-exception-handler.md index a494fea1..f9cb0ee1 100644 --- a/zh-cn/react-native-exception-handler.md +++ b/zh-cn/react-native-exception-handler.md @@ -125,17 +125,24 @@ export const ReactNativeExceptionHandler = () => { ## 使用 Codegen -Version >= @react-native-ohos/react-native-exception-handler@2.10.11,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-exception-handler@2.10.11,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~2.11.0 | No | 0.77 | +| ~2.10.11 | Yes | 0.72 | +| <=2.10.10-0.1.7@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -256,8 +263,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-exit-app.md b/zh-cn/react-native-exit-app.md index 93be5709..03f18bcd 100644 --- a/zh-cn/react-native-exit-app.md +++ b/zh-cn/react-native-exit-app.md @@ -86,17 +86,24 @@ export default App; ## 使用 Codegen -Version >= @react-native-ohos/react-native-exit-app@2.0.1,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-exit-app@2.0.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~2.1.0 | No | 0.77 | +| ~2.0.1 | Yes | 0.72 | +| <= 2.0.0-0.0.1@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -218,8 +225,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-fast-image.md b/zh-cn/react-native-fast-image.md index 460e2c32..d44db166 100644 --- a/zh-cn/react-native-fast-image.md +++ b/zh-cn/react-native-fast-image.md @@ -109,11 +109,19 @@ const styles = StyleSheet.create({ ## Link -Version >= @react-native-ohos/react-native-fast-image@8.6.4,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~8.7.0 | No | 0.77 | +| ~8.6.4 | Yes | 0.72 | +| <= 8.6.3-0.4.17@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -235,8 +243,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-file-access.md b/zh-cn/react-native-file-access.md index a40516b4..10fb06cd 100644 --- a/zh-cn/react-native-file-access.md +++ b/zh-cn/react-native-file-access.md @@ -324,17 +324,24 @@ export default FileAccessDemo ## 使用 Codegen -Version >= @react-native-ohos/react-native-file-access@3.1.2,已适配codegen-lib生成桥接代码。 本库已经适配了 Codegen ,在使用前需要主动执行生成三方库桥接代码,详细请参考 [Codegen 文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-file-access@3.1.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~3.2.0 | No | 0.77 | +| ~3.1.2 | Yes | 0.72 | +| <=3.1.1@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -461,8 +468,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-file-selector.md b/zh-cn/react-native-file-selector.md index b205bc5e..84d55aae 100644 --- a/zh-cn/react-native-file-selector.md +++ b/zh-cn/react-native-file-selector.md @@ -63,17 +63,24 @@ export default App; ## 使用 Codegen -Version >= @react-native-ohos/react-native-file-selector@1.0.3,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-file-selector@1.0.3,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.1.0 | No | 0.77 | +| ~1.0.3 | Yes | 0.72 | +| <= 1.0.2-0.0.3@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -199,8 +206,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-file-viewer.md b/zh-cn/react-native-file-viewer.md index bf5034cd..505117d9 100644 --- a/zh-cn/react-native-file-viewer.md +++ b/zh-cn/react-native-file-viewer.md @@ -139,18 +139,24 @@ const styles = StyleSheet.create({ ## 使用 Codegen -Version >= @react-native-ohos/react-native-file-viewer@2.1.7,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-file-viewer@2.1.7,已支持 Autolink,无需手动配置,目前只支持72框架。 -Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~2.2.0 | No | 0.77 | +| ~2.1.7 | Yes | 0.72 | +| <= 2.1.6@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -274,8 +280,9 @@ export function createRNPackages(ctx: RNPackageContext): RNPackage[] { ]; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-fileupload.md b/zh-cn/react-native-fileupload.md index 08d81ab7..2cdb7fcc 100644 --- a/zh-cn/react-native-fileupload.md +++ b/zh-cn/react-native-fileupload.md @@ -127,17 +127,24 @@ let styles = StyleSheet.create({ ## 使用 Codegen -Version >= @react-native-ohos/react-native-fileupload@1.1.1,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-fileupload@1.1.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~1.2.0 | No | 0.77 | +| ~1.1.1 | Yes | 0.72 | +| <=1.1.0-0.0.2@deprecated | No | 0.72 | -此步骤为手动配置原生依赖项的指导。 +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 + +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides 字段 @@ -259,8 +266,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5. 运行 +## 运行 点击右上角的 `sync` 按钮 diff --git a/zh-cn/react-native-fingerprint-scanner.md b/zh-cn/react-native-fingerprint-scanner.md index cd947d34..bf329477 100644 --- a/zh-cn/react-native-fingerprint-scanner.md +++ b/zh-cn/react-native-fingerprint-scanner.md @@ -13,11 +13,12 @@

- [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-fingerprint-scanner) + > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-fingerprint-scanner) ## 安装与使用 请到三方库的 Releases 发布地址查看配套的版本信息: + | 三方库版本 | 发布信息 | 支持RN版本 | | ---------- | ------------------------------------------------------------ | ---------- | | <= 6.0.0-0.0.4@deprecated | [@react-native-oh-tpl/react-native-fingerprint-scanner Releases(deprecated)](https://github.com/react-native-oh-library/react-native-fingerprint-scanner/releases) | 0.72 | @@ -94,18 +95,24 @@ export default function App() { ## 使用 Codegen -Version >= @react-native-ohos/react-native-fingerprint-scanner@6.0.1,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-fingerprint-scanner@6.0.1,已支持 Autolink,无需手动配置,目前只支持72框架。 -Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|------------------|-----------| +| ~6.1.0 | No | 0.77 | +| ~6.0.1 | Yes | 0.72 | +| <= 6.0.0-0.0.4@deprecated | No | 0.72 | + +使用AutoLink的工程需要根据该文档配置,Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md。 -此步骤为手动配置原生依赖项的指导。 +如您使用的版本支持 Autolink,并且工程已接入 Autolink,可跳过ManualLink配置。 +
+ ManualLink: 此步骤为手动配置原生依赖项的指导 -首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` +首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony`。 ### 1.在工程根目录的 `oh-package.json5` 添加 overrides字段 @@ -227,8 +234,9 @@ std::vector> PackageProvider::getPackages(Package::Cont }; } ``` +
-### 5.运行 +## 运行 点击右上角的 `sync` 按钮 -- Gitee