React Native Nitro Geolocation

A React Native Geolocation module

Native geolocation with simple API and modern React Hook, powered by Nitro.

Nitro 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)

Legacy API provides 100% compatibility with @react-native-community/geolocation 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

Compatible with Expo modules, RN CLI, and custom native builds out of the box.