location permission not granted in react native

location permission not granted in react native You have to take permission from the user. ANDROID import { PermissionsAndroid } from 'react-native'; await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, ); IOS import Geolocation from 'react-native-geolocation-service'; Geolocation.requestAuthorization(); Geolocation.setRNConfiguration({ skipPermissionRequests: false, authorizationLevel: 'whenInUse', }); location permission

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top