Closed suprfamtech closed 3 years ago
try this Geolocation.requestAuthorization({ authorizationLevel : "whenInUse" }).then(res=> console.log("result>>",res) )
There's no named export, you have to import it like this
import Geolocation from 'react-native-geolocation-service';
---
await Geolocation.requestAuthorization("whenInUse");
I'm trying to use location service in our app. Did ios setup, used function to take ios permission import { requestAuthorization } from 'react-native-geolocation-service' const permission = await requestAuthorization('whenInUse')
it throws error Error stack: