From 132d9244a939017bc64e1f224027569dc15ff13c Mon Sep 17 00:00:00 2001 From: tiantian Date: Wed, 17 Jan 2024 09:56:36 +0800 Subject: [PATCH] =?UTF-8?q?[Issues:=20#I8WRXB]=20=E6=9B=B4=E6=96=B01224?= =?UTF-8?q?=E7=89=88=E6=9C=ACreact-native-geolocation=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1224/react-native-geolocation.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/1224/react-native-geolocation.md b/1224/react-native-geolocation.md index 88035f71..a1d08637 100644 --- a/1224/react-native-geolocation.md +++ b/1224/react-native-geolocation.md @@ -130,14 +130,14 @@ target_link_libraries(rnoh_app PUBLIC rnoh_sample_package) ```diff #include "RNOH/PackageProvider.h" #include "SamplePackage.h" -+ #include "GeolocationPackage.h" ++ #include "GeoLocationPackage.h" using namespace rnoh; std::vector> PackageProvider::getPackages(Package::Context ctx) { return { std::make_shared(ctx), -+ std::make_shared(ctx) ++ std::make_shared(ctx) }; } ``` @@ -150,12 +150,12 @@ std::vector> PackageProvider::getPackages(Package::Cont ```diff ... -+ import {GeolocationPackage} from 'rnoh-geolocation/ts'; ++ import {GeoLocationPackage} from 'rnoh-geolocation/ts'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ new SamplePackage(ctx), -+ new GeolocationPackage(ctx) ++ new GeoLocationPackage(ctx) ]; } ``` @@ -215,6 +215,8 @@ ohpm install ## 遗留问题 +- [ ] react-native-geolocation 部分属性未实现鸿蒙化: [issue#I8WRMI](https://gitee.com/react-native-oh-library/usage-docs/issues/I8WRMI) + ## 其他 ## 开源协议 -- Gitee