2.0.0 • Published 4 years ago

react-native-gmapsview v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ReactNative-GMapsViewComponent

A ReactNative component which allows you to generate a mini GMaps view for any postal address.

I use with on a Expo-RN app I'm currently working on.

Screenshot

npm i react-native-gmapsview

How Do I Use This ?

Import it like this, and use it like in the example

import { GMapsView } from 'react-native-gmapsview';

Also, you need to get an apiKey at https://developer.mapquest.com/documentation/open/ . I use this awesome service to get lattitude and longitude coordinates from a postal address.

Finally, you need to setup your GMaps APIKEY in your app.json .

Props

Example

<GMapsView address="24 rue des poules, 67000 Strasbourg" gMaps="https://g.page/bluemoonstrasbourg?share" apiKey="123APIKEYblabla" />