react-native-nitro-geolocation 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -351,7 +351,9 @@ Geolocation.clearWatch(watchId);
|
|
|
351
351
|
|
|
352
352
|
---
|
|
353
353
|
|
|
354
|
-
## 🔄 Migration
|
|
354
|
+
## 🔄 Migration
|
|
355
|
+
|
|
356
|
+
### From `@react-native-community/geolocation`
|
|
355
357
|
|
|
356
358
|
The safest migration is two-step: switch imports to `/compat` first, verify
|
|
357
359
|
the app, then move call sites to the Modern API where it improves ownership,
|
|
@@ -370,13 +372,13 @@ Android provider/settings handling.
|
|
|
370
372
|
With the Vercel Labs `skills` CLI:
|
|
371
373
|
|
|
372
374
|
```bash
|
|
373
|
-
npx skills add jingjing2222/react-native-nitro-geolocation --skill
|
|
375
|
+
npx skills add jingjing2222/react-native-nitro-geolocation --skill community-migration
|
|
374
376
|
```
|
|
375
377
|
|
|
376
378
|
The skill source is
|
|
377
|
-
[`skills/
|
|
379
|
+
[`skills/community-migration/SKILL.md`](https://github.com/jingjing2222/react-native-nitro-geolocation/tree/main/skills/community-migration).
|
|
378
380
|
The bundled bootstrap script is
|
|
379
|
-
[`skills/
|
|
381
|
+
[`skills/community-migration/scripts/migrate-to-compat.mjs`](https://github.com/jingjing2222/react-native-nitro-geolocation/tree/main/skills/community-migration/scripts/migrate-to-compat.mjs).
|
|
380
382
|
|
|
381
383
|
For a drop-in compatibility migration, change the import to use `/compat`:
|
|
382
384
|
|
|
@@ -398,9 +400,25 @@ Then migrate individual call sites to the Modern API:
|
|
|
398
400
|
+ });
|
|
399
401
|
```
|
|
400
402
|
|
|
401
|
-
See
|
|
403
|
+
See [Community Migration](https://react-native-nitro-geolocation.pages.dev/guide/community-migration)
|
|
402
404
|
for the full community import → `/compat` → Modern API path.
|
|
403
405
|
|
|
406
|
+
### From `react-native-geolocation-service`
|
|
407
|
+
|
|
408
|
+
Apps currently using `react-native-geolocation-service` should migrate directly
|
|
409
|
+
to the Modern API. Do not route this path through `/compat`; the service package
|
|
410
|
+
has Android fused-provider, settings-dialog, `mocked`/`provider`, and
|
|
411
|
+
provider-related error behavior that maps more naturally to Modern APIs.
|
|
412
|
+
|
|
413
|
+
Install the dedicated Agent Skills-compatible migration playbook:
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
npx skills add jingjing2222/react-native-nitro-geolocation --skill service-migration
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
See [Service Migration](https://react-native-nitro-geolocation.pages.dev/guide/service-migration)
|
|
420
|
+
for the direct service → Modern API path.
|
|
421
|
+
|
|
404
422
|
---
|
|
405
423
|
|
|
406
424
|
## Benchmark scope
|
|
@@ -422,7 +440,9 @@ path cheaper.
|
|
|
422
440
|
- [Quick Start Guide](https://react-native-nitro-geolocation.pages.dev/guide/quick-start)
|
|
423
441
|
- [Modern API Reference](https://react-native-nitro-geolocation.pages.dev/guide/modern-api)
|
|
424
442
|
- [Compat API Reference](https://react-native-nitro-geolocation.pages.dev/guide/compat-api)
|
|
425
|
-
- [Migration
|
|
443
|
+
- [Migration Skills](https://react-native-nitro-geolocation.pages.dev/guide/migration-assistance)
|
|
444
|
+
- [Community Migration](https://react-native-nitro-geolocation.pages.dev/guide/community-migration)
|
|
445
|
+
- [Service Migration](https://react-native-nitro-geolocation.pages.dev/guide/service-migration)
|
|
426
446
|
- [Expo Development Build Guide](https://react-native-nitro-geolocation.pages.dev/guide/expo-development-build)
|
|
427
447
|
- [DevTools Plugin Guide](https://react-native-nitro-geolocation.pages.dev/guide/devtools)
|
|
428
448
|
- [Why Nitro Module?](https://react-native-nitro-geolocation.pages.dev/guide/why-nitro-module)
|