forked from michalchudziak/react-native-geolocation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Ensure permission denied in geolocation.getCurrentPosition rejec…
…ts the Promise fixes facebook/react-native#22535 Moves the permission request logic on Android M and above to Native side to mimic IOS behavior. Changelog: ---------- [Android] [Fixed] - Ensure permission denied in geolocation.getCurrentPosition rejects the promise Test Plan: ---------- Was originally reviewed and accepted as facebook/react-native#22843 as part of core react-native. That PR was verified via my test project which requested location via Geolocation service. If the permission request was denied by the user the promise was rejected as well. https://github.com/Jyrno42/rn-geoloctest
- Loading branch information
Showing
3 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ | |
"description": "React Native Geolocation Module for iOS and Android", | ||
"main": "js/index.js", | ||
"author": "Janic Duplessis <[email protected]>", | ||
"contributors": [], | ||
"contributors": [ | ||
"Jyrno Ader <[email protected]>" | ||
], | ||
"homepage": "https://github.com/react-native-community/react-native-geolocation#README.md", | ||
"license": "MIT", | ||
"scripts": { | ||
|