We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f7a2e commit 3631645Copy full SHA for 3631645
index.js
@@ -55,6 +55,7 @@ async function openIOSSettings(root, path = '') {
55
56
async function requestAndroidPermission(enableHighAccuracy = false, rationale = undefined) {
57
const { PERMISSIONS, RESULTS } = PermissionsAndroid;
58
+
59
const granted = await PermissionsAndroid.request(
60
enableHighAccuracy
61
? PERMISSIONS.ACCESS_FINE_LOCATION
@@ -74,7 +75,7 @@ export default {
74
75
rationale: undefined,
76
}) {
77
if (OS === 'android') {
- await requestAndroidPermission(options.enableHighAccuracy, rationale);
78
+ await requestAndroidPermission(options.enableHighAccuracy, options.rationale);
79
}
80
try {
81
const location = await ReactNativeGetLocation.getCurrentPosition(options);
0 commit comments