react-native-mapintent
A React Native map intent for Android. Allows to open Android Stock Map Application.
Installation
npm install --save react-native-mapintent
Add it to your android project
- In
android/setting.gradle
...include ':RNMapIntent', ':app'project(':RNMapIntent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mapintent')
- In
android/app/build.gradle
...dependencies { ... compile project(':RNMapIntent')}
- register module (in MainActivity.java)
// <--- import
Example
MapIntent.open(latitude, longitude, label)
- latitude: (string) geolocation latitude value
- longitude: (string) geolocation longitude value
- label: (string) label on the geolocation point.
var MapIntent = ; MapIntent;
License
MIT