react-native-maps provides MapView and map child components for iOS and Android React Native apps. Markers, polygons, overlays, and region control use a React-like declarative API.
Overview
react-native-maps supplies map UI components for React Native applications on iOS and Android. The central MapView accepts child components such as markers, polylines, polygons, and tile overlays so map features are declared in JSX similar to other React trees.
Developers can set an initial region, control the visible region as state, animate programmatic moves, and listen to region and POI events. Markers support default pins, custom images, custom views, draggable behavior, and arbitrary React callout content. Google Maps styling on mobile can use a googleMapId for cloud-published map styles.
Tile overlays can load remote tile servers or local xyz tiles stored on device, which helps offline or cached map regions when combined with mapType settings on Android. The library integrates with the React Native Animated API for animated regions and marker coordinates, and can capture map snapshots or zoom to selected markers or coordinates.
Lite mode on Android reduces resource use when multiple maps appear in scrolling layouts. Compatibility tables in the project document required React Native versions for Fabric and older architectures.
Key features
- MapView with declarative marker children
- Polylines, polygons, and tile overlays
- Custom marker images and React callouts
- Draggable markers and map event hooks
- Programmatic region animation and snapshots
- Google Maps styled maps via googleMapId
- Local xyz tile overlay support
- Android lite mode for multiple maps
Use cases
- Showing locations in React Native apps
- Custom markers and callouts on mobile maps
- Offline tile overlays for limited connectivity
- Animating map focus between coordinates
- Google POI click handling on Android