Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function requestPermissionAsync(): Promise<{ status: PermissionStatus }> {
if (Platform.OS === 'android') {
return await Permissions.askAsync(Permissions.LOCATION);
}
return { status: PermissionStatus.GRANTED };
}