expo-location
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -105,3 +105,3 @@ import { PermissionStatus } from 'unimodules-permissions-interface'; | ||
return new Promise(resolve => { | ||
// @ts-ignore | ||
// @ts-ignore: the types here need to be fixed | ||
watchId = global.navigator.geolocation.watchPosition(position => { | ||
@@ -113,3 +113,5 @@ lastKnownPosition = geolocationPositionToJSON(position); | ||
}); | ||
}, null, options); | ||
}, undefined, | ||
// @ts-ignore: the options object needs to be fixed | ||
options); | ||
resolve(watchId); | ||
@@ -116,0 +118,0 @@ }); |
@@ -66,3 +66,4 @@ import { PermissionStatus } from 'unimodules-permissions-interface'; | ||
/** | ||
* Deprecated as of SDK39 | ||
* @deprecated | ||
* Deprecated as of SDK39 in favour of `setGoogleApiKey`. | ||
*/ | ||
@@ -69,0 +70,0 @@ export declare function setApiKey(apiKey: string): void; |
@@ -177,3 +177,4 @@ import { Platform } from '@unimodules/core'; | ||
/** | ||
* Deprecated as of SDK39 | ||
* @deprecated | ||
* Deprecated as of SDK39 in favour of `setGoogleApiKey`. | ||
*/ | ||
@@ -180,0 +181,0 @@ export function setApiKey(apiKey) { |
@@ -11,2 +11,8 @@ # Changelog | ||
## 9.0.1 β 2020-10-02 | ||
### π Bug fixes | ||
- Redeliver intent when restarting task service. ([#10410](https://github.com/expo/expo/pull/10410) by [@byCedric](https://github.com/byCedric)) | ||
## 9.0.0 β 2020-08-18 | ||
@@ -13,0 +19,0 @@ |
{ | ||
"name": "expo-location", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.", | ||
@@ -49,3 +49,3 @@ "main": "build/Location.js", | ||
}, | ||
"gitHead": "2196cebae55bda181ccceadec809942f51ee9e39" | ||
"gitHead": "5a8c4f45536501d219fdc12f4d93d5d139824622" | ||
} |
@@ -16,3 +16,3 @@ # expo-location | ||
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing. | ||
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing. | ||
@@ -19,0 +19,0 @@ ### Add the package to your npm dependencies |
@@ -128,3 +128,3 @@ import { PermissionResponse, PermissionStatus } from 'unimodules-permissions-interface'; | ||
return new Promise<string>(resolve => { | ||
// @ts-ignore | ||
// @ts-ignore: the types here need to be fixed | ||
watchId = global.navigator.geolocation.watchPosition( | ||
@@ -138,3 +138,4 @@ position => { | ||
}, | ||
null, | ||
undefined, | ||
// @ts-ignore: the options object needs to be fixed | ||
options | ||
@@ -141,0 +142,0 @@ ); |
@@ -253,3 +253,4 @@ import { Platform } from '@unimodules/core'; | ||
/** | ||
* Deprecated as of SDK39 | ||
* @deprecated | ||
* Deprecated as of SDK39 in favour of `setGoogleApiKey`. | ||
*/ | ||
@@ -256,0 +257,0 @@ export function setApiKey(apiKey: string): void { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
236488
1807
1