diff --git a/en/react-native-vibration-feedback.md b/en/react-native-vibration-feedback.md index f9ef5f3a002be76419a4684a990402136c967c7a..4d1c602596d98898f6ba24bb55b65783354a0017 100644 --- a/en/react-native-vibration-feedback.md +++ b/en/react-native-vibration-feedback.md @@ -124,7 +124,7 @@ Method 2: Directly link to the source code. > [!TIP] For details, see [Directly Linking Source Code](/en/link-source-code.md). -### 3.Configuring CMakeLists and Introducing UnistylesPackage +### 3.Configuring CMakeLists and Introducing ReactNativeVibrationFeedbackPackage Open `entry/src/main/cpp/CMakeLists.txt` and add the following code: @@ -176,7 +176,7 @@ std::vector> PackageProvider::getPackages(Package::Cont } ``` -### 4.Introducing RNUnistylesPackage to ArkTS +### 4.Introducing RNVibrationFeedbackPackage to ArkTS Open `entry/src/main/ets/RNPackagesFactory.ts`,add: diff --git a/zh-cn/react-native-vibration-feedback.md b/zh-cn/react-native-vibration-feedback.md index fd208316f6a5bdfa5c8edb148a243f9aaf7bad2b..d434dbf066ef5791d6dac548b74a0565c044c9f9 100644 --- a/zh-cn/react-native-vibration-feedback.md +++ b/zh-cn/react-native-vibration-feedback.md @@ -128,7 +128,7 @@ ohpm install > [!TIP] 如需使用直接链接源码,请参考[直接链接源码说明](/zh-cn/link-source-code.md) -### 3.配置 CMakeLists 和引入 ViewShotPackage +### 3.配置 CMakeLists 和引入 ReactNativeVibrationFeedbackPackage 打开 `entry/src/main/cpp/CMakeLists.txt`,添加: @@ -178,7 +178,7 @@ std::vector> PackageProvider::getPackages(Package::Cont } ``` -### 4.在 ArkTs 侧引入 BlePlxPackage +### 4.在 ArkTs 侧引入 RNVibrationFeedbackPackage 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: @@ -211,7 +211,7 @@ ohpm install ### 兼容性 -要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 +本文档内容基于以下版本验证通过: 1. RNOH:0.72.90; SDK:HarmonyOS 5.1.0.150 (API Version 12); IDE:DevEco Studio 6.0.0.858; ROM:6.0.0.112; 2. RNOH:0.72.90; SDK:HarmonyOS 5.1.0.150 (API Version 12); IDE:DevEco Studio 6.0.0.858; ROM:5.0.0.102;