React Native Nitro Geolocation
Nitro-powered native geolocation

Replace community geolocation with /compat, then move to a typed Modern API.

Nitro Geolocation LogoNitro Geolocation Logo
🎯

Simple Functional API

Direct function calls and a single hook for tracking. No complex abstractions, just simple and effective.

📡

Fully native implementation

Access device geolocation data through JSI and Nitro Modules for maximum performance.

🔁

Drop-in replacement (via /compat)

Compat API is drop-in compatible with the core native @react-native-community/geolocation API for easy migration.

📱

Consistent Android & iOS behavior

Unified permission handling, background location consistency, and improved accuracy tuning.

⚙️

Direct JSI communication

Built with Nitro Modules, enabling direct JS-to-native calls without bridge serialization overhead.

🧹

Automatic cleanup

useWatchPosition automatically manages subscriptions with component lifecycle—no manual cleanup needed.

🛠️

DevTools Plugin for Rozenite

Mock locations in development with an interactive map interface, city presets, and keyboard controls.

📘

TypeScript ready

Full type definitions for all APIs with complete type inference for functions and hooks.

🧩

Easy integration

Works in bare React Native, RN CLI, Expo development builds, and other custom native builds.