I am using Permissions from the expo-permission Library to get the location coords of the user:
import * as Location from "expo-location";
import * as Permissions from 'expo-permissions';
const granted = await Permissions.askAsync(Permissions.LOCATION);
The above works but keeps giving the warning that expo-permissions is deprecated.
If I use:
import {Location, Permissions } from 'expo';
it says Cannot read property 'askAsync' of undefined.
Does someone know what i should use? I use sdk42
Thx!
RequestXPermissionAsync()
function ? I'm trying to use a wifi p2p lib and I need differents permissions such asACCESS_COARSE_LOCATION
,WRITE_EXTERNAL_STORAGE
... – Preset