diff --git a/zh-cn/react-native-amap-geolocation.md b/zh-cn/react-native-amap-geolocation.md index e0be170fc865eab4579e6bb5ab355b098e1fd832..c447c22291e9f0f9312d20a86f52288b54dbdbaa 100644 --- a/zh-cn/react-native-amap-geolocation.md +++ b/zh-cn/react-native-amap-geolocation.md @@ -381,19 +381,19 @@ ohpm install ```diff #include "RNOH/PackageProvider.h" #include "generated/RNOHGeneratedPackage.h" -+ #include "AmapGeolocationPackage.h" ++ #include "AMapGeolocationPackage.h" 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 侧引入 AmapGeolocationPackage +### 4.在 ArkTs 侧引入 AMapGeolocationPackage 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: