diff --git a/en/react-native-orientation.md b/en/react-native-orientation.md index 5c58ef47ba2beb22bb0b43d99b374cb32dff547f..19711322bf871387296715fa55c9f9ba8632024c 100644 --- a/en/react-native-orientation.md +++ b/en/react-native-orientation.md @@ -213,7 +213,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/rnoh-orientation": "file:../../node_modules/@react-native-oh-tpl/react-native-orientation/harmony/rn_orientation.har" + "@react-native-oh-tpl/react-native-orientation": "file:../../node_modules/@react-native-oh-tpl/react-native-orientation/harmony/rn_orientation.har" } ``` @@ -243,7 +243,7 @@ Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following co ```diff ... -+ import { RNOrientationPackage } from '@react-native-oh-tpl/rnoh-orientation/ts'; ++ import { RNOrientationPackage } from '@react-native-oh-tpl/react-native-orientation/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ diff --git a/zh-cn/react-native-orientation.md b/zh-cn/react-native-orientation.md index 85812e6bbe75636bd2776e104d8740658f76ca33..36909eb40f62615d73735d3a8d8e5be1fa9b1315 100644 --- a/zh-cn/react-native-orientation.md +++ b/zh-cn/react-native-orientation.md @@ -10,7 +10,6 @@ License -

> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-orientation) @@ -210,7 +209,7 @@ const styles = StyleSheet.create({ ```json "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/rnoh-orientation": "file:../../node_modules/@react-native-oh-tpl/react-native-orientation/harmony/rn_orientation.har" + "@react-native-oh-tpl/react-native-orientation": "file:../../node_modules/@react-native-oh-tpl/react-native-orientation/harmony/rn_orientation.har" } ``` @@ -240,7 +239,7 @@ ohpm install --no-link ```diff ... -+ import { RNOrientationPackage } from '@react-native-oh-tpl/rnoh-orientation/ts'; ++ import { RNOrientationPackage } from '@react-native-oh-tpl/react-native-orientation/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [