@connected-home/react-native-geolocation
Basic geolocation + geofencing. Delegates to react-native-background-geolocation for iOS.
Last updated 6 months ago by atsurikov .
MIT · Original npm · Tarball · package.json
$ cnpm install @connected-home/react-native-geolocation 
SYNC missed versions from official npm registry.

react-native-geolocation

Getting started

$ npm install react-native-geolocation --save

Mostly automatic installation

$ react-native link react-native-geolocation

Android

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

Usage

import RNGeolocation from 'react-native-geolocation';

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

Current Tags

  • 1.5.4                                ...           latest (6 months ago)

26 Versions

  • 1.5.4                                ...           6 months ago
  • 1.5.3                                ...           7 months ago
  • 1.5.2                                ...           8 months ago
  • 1.5.1                                ...           8 months ago
  • 1.5.0                                ...           9 months ago
  • 1.4.6                                ...           9 months ago
  • 1.4.5                                ...           9 months ago
  • 1.4.4                                ...           a year ago
  • 1.4.3                                ...           a year ago
  • 1.4.2                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |