diff --git a/en/react-native-amap-geolocation.md b/en/react-native-amap-geolocation.md index 7dafefac6ad240a5024a8be66d8af0b8529dcf57..2dde156bc4d3fcc2ec0afc3b5deee6b1125245ea 100644 --- a/en/react-native-amap-geolocation.md +++ b/en/react-native-amap-geolocation.md @@ -380,19 +380,19 @@ Open `entry/src/main/cpp/PackageProvider.cpp` and add: ```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. Introducing AmapGeolocationPackage to ArkTS +### 4. Introducing AMapGeolocationPackage to ArkTS Open the `entry/src/main/ets/RNPackagesFactory.ts` file and add the following code: