npm.io
1.0.2 • Published 9 years ago

react-native-google-maps-android

Licence
—
Version
1.0.2
Deps
0
Vulns
0
Weekly
0

react-native-google-maps-android

Getting started

$ npm install react-native-google-maps-android --save

Mostly automatic installation

$ react-native link react-native-google-maps-android

Manual installation
Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.googlemapsreactive.RNGoogleMapsAndroidPackage; to the imports at the top of the file
  • Add new RNGoogleMapsAndroidPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-google-maps-android'
    project(':react-native-google-maps-android').projectDir = new File(rootProject.projectDir,     '../node_modules/react-native-google-maps-android/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
    compile project(':react-native-google-maps-android')

Usage

import RNGoogleMapsAndroid from 'react-native-google-maps-android';

// TODO: What to do with the module?
RNGoogleMapsAndroid;

Keywords