Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-geolocation-service

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-geolocation-service - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

3

CHANGELOG.md
# Changelog
### 2.0.0 (December 2, 2018)
- Support RN 0.57+
### 1.1.0 (July 2, 2018)

@@ -4,0 +7,0 @@ - Added support for project wide gradle properties.

6

package.json
{
"name": "react-native-geolocation-service",
"version": "1.1.0",
"version": "2.0.0",
"description": "React native geolocation service for iOS and android",

@@ -39,4 +39,4 @@ "main": "js/index.js",

"lint-staged": "^4.0.3",
"react": "16.3.1",
"react-native": "0.55.4"
"react": "16.5.0",
"react-native": "0.57.0"
},

@@ -43,0 +43,0 @@ "lint-staged": {

@@ -14,2 +14,8 @@ # react-native-geolocation-service

# Compatibility
| RN Version | Package Version |
| ---------- | --------------- |
| 0.57+ | 2.0.0 |
| <0.57 | 1.1.0 |
# Setup

@@ -120,8 +126,11 @@

- **options**:
- timeout (ms)
- maximumAge (ms)
- enableHighAccuracy (bool)
- distanceFilter (double)
- showLocationDialog (whether to ask to enable location in Android)
| Name | Type | Default | Description |
| -- | -- | -- | -- |
| timeout | `ms` | -- | Request timeout |
| maximumAge | `ms` | `INFINITY` | How long previous location will be cached |
| enableHighAccuracy | `bool` | `false` | Use high accuracy mode
| distanceFilter | `m` | `0` | Minimum displacement in meters
| showLocationDialog | `bool` | `true` | whether to ask to enable location in Android
#### `watchPosition(successCallback, ?errorCallback, ?options)`

@@ -131,8 +140,11 @@ - **successCallback**: Invoked with latest location info.

- **options**:
- enableHighAccuracy (bool)
- distanceFilter (double)
- interval (millisecond)
- fastestInterval (millisecond)
- showLocationDialog (whether to ask to enable location in Android)
| Name | Type | Default | Description |
| -- | -- | -- | -- |
| enableHighAccuracy | `bool` | `false` | Use high accuracy mode
| distanceFilter | `m` | `100` | Minimum displacement between location updates in meters
| interval | `ms` | `10000` | Interval for active location updates
| fastestInterval | `ms` | `5000` | Fastest rate at which your application will receive location updates, which might be faster than `interval` in some situations (for example, if other applications are triggering location updates)
| showLocationDialog | `bool` | `true` | whether to ask to enable location in Android
#### `clearWatch(watchId)`

@@ -176,2 +188,2 @@ - watchId (id returned by `watchPosition`)

- Sony If you're running Android 6 or higher: Battery > from the menu in the upper right-hand corner > battery optimization > apps > your app
- Xiomi (MIUI OS) If you're running Android 6 or higher: Access your phone settings > additional settings > battery and performance > manage battery usage > apps > your app
- Xiaomi (MIUI OS) If you're running Android 6 or higher: Access your phone settings > additional settings > battery and performance > manage battery usage > apps > your app

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc