Choose your path
You are reading the 2.0 release-candidate documentation. Use this page to pick one path; you do not need to read every guide before starting.
Choose an API surface
The package has three intentionally separate entry points.
/compat preserves the core callback methods and numeric error contract. It is
a migration-friendly API-shape path, not a promise that every legacy global,
default, or platform-specific option behaves identically. Review the
compatibility matrix before shipping.
Check the support boundary
- React Native 0.75 or newer with New Architecture and Nitro Modules is required for native apps.
- Bare React Native and Expo development/custom native builds are supported. Expo Go is not supported.
- CocoaPods is the recommended production iOS dependency path. React Native 0.87.x SwiftPM-only projects have an experimental precompiled integration; use the exact compatibility matrix in the Swift Package Manager guide.
- Both foreground APIs support browser builds through
navigator.geolocation. Background Location is native-only. - Android and iOS share public contracts but retain documented OS behavior and reliability limits.
The peer range describes where installation is allowed; it is broader than the single reference combination continuously exercised by this repository. See Release readiness for the declared and tested scopes.
RC expectations
Install an exact RC when reproducing or approving behavior:
Release candidates may still receive contract fixes before 2.0 stable. Do not
silently follow the moving @rc tag in a production lockfile. Keep a tested
1.x rollback branch until the upgrade checklist and
release checklist pass in your app.
Next action
For a new integration, continue to Install and get a location. For any existing Nitro Geolocation 1.x app, start with Upgrade from 1.x before opening the API reference.
