React Native Better Clustering
react-native-better-clustering is a faster
react-native-map-clustering —
same MapView + <Marker> API, with a C++ supercluster engine via
Nitro Modules instead of JS on the RN bridge.
Migration
- import MapView from 'react-native-map-clustering'
+ import MapView from 'react-native-better-clustering'
Why C++/Nitro?
Clustering large datasets in JavaScript causes dropped frames on every region change. This library builds the index in C++ and returns only visible features for the current viewport — without changing how you write map screens.
Advanced APIs
Need full control over rendering? Use subpath exports:
/hooks—useClustererwhen you own theMapView/engine—Superclusterclass and geometry helpers/geojson— GeoJSON conversion utilities
Next steps
- Quick Start — install and render your first clustered map.
- Platform Setup — peers and prebuild.
- MapView API — props, callbacks, and customization.
- Hooks API —
useClustererfor custom stacks.