You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-20 23:30:05 +02:00
Ask permission to use geo-location
This commit is contained in:
@@ -3,7 +3,7 @@ const { Platform, PermissionsAndroid } = require('react-native');
|
||||
type rationale = {
|
||||
title: string,
|
||||
message: string,
|
||||
buttonPositive: string,
|
||||
buttonPositive?: string,
|
||||
buttonNegative?: string
|
||||
buttonNeutral?: string
|
||||
}
|
||||
@@ -15,5 +15,5 @@ export default async (permissions: string, rationale?: rationale) => {
|
||||
if (result !== PermissionsAndroid.RESULTS.GRANTED) {
|
||||
result = await PermissionsAndroid.request(permissions, rationale);
|
||||
}
|
||||
return result === PermissionsAndroid.RESULTS.GRANTED;
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user