Skip to content

About

React Native wrapper for Android & iOS Google Maps SDK.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

78 stars

Watchers

1 watching

Forks

Latest commit

 

History

516 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-google-maps-plus

Map and Street View components for React Native.
Uses the Google Maps SDK for iOS and the Maps SDK for Android, built on Nitro Modules.

npm version dev release build React Native 0.87 or newer

Documentation     Examples     API reference


Ride tracking: a car on its way to the drop-off
Ride tracking
Store locator: coffee shop pins with a selected card
Store locator
Transit network: BART and Muni lines with stations
Transit network
Analytics: a heatmap on a dark map style
Analytics
Outdoor tracking: a hike on the terrain map
Outdoor tracking
Navigation: a tilted map with 3D buildings and a turn instruction
Navigation
Rentals: price tags in a drawn search area
Rentals
Friends nearby: avatar markers with names
Friends nearby
Flight routes: geodesic routes across the Atlantic
Flight routes
Street View at the Golden Gate Bridge
Street View

Top row on iOS, bottom row on Android. Every marker is an SVG. 25 examples with code.

Features

  • Map view and Street View panorama
  • Markers with SVG icons, rendered with lunasvg
  • Advanced Markers with pins and glyphs
  • Polylines, polygons, circles, heatmaps, KML layers and URL tile overlays
  • Map styles, map IDs, dark mode, traffic, transit and indoor maps
  • Camera control and snapshots
  • Location updates, heading and permissions

Requirements

Minimum
React Native 0.87, New Architecture
iOS 16
Android API 26, Kotlin 2.3
Expo Development build with the config plugin

Installation

yarn add react-native-google-maps-plus react-native-nitro-modules

Then set up the Google Maps SDKs and your API keys for iOS and Android, see the installation guide.

Usage

import { GoogleMapsView } from 'react-native-google-maps-plus';

export default function App() {
  return (
    <GoogleMapsView
      style={{ flex: 1 }}
      mapOptions={{
        camera: {
          center: { latitude: 37.7749, longitude: -122.4194 },
          zoom: 12,
        },
      }}
      markers={[
        {
          id: 'ferry-building',
          coordinate: { latitude: 37.7955, longitude: -122.3937 },
        },
      ]}
    />
  );
}

Overlays are props, callbacks report what the user does and the ref moves the camera. See Usage and the examples.

Documentation

Contributing

License

MIT

About

React Native wrapper for Android & iOS Google Maps SDK.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

78 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages