I'm trying to get the location of my user on iOS using React Native. I have added the location privacy description in the plist, and I have tried various codes but none show the dialogue asking permission. Right now, I'm using this library: https://github.com/yonahforst/react-native-permissions
My code to request location permission is as follows:
componentDidMount() {
Permissions.request('location', 'whenInUse')
.then(res => {
console.log(res);
})
This does nothing. When I check the permission, it says undetermined.
Please note that my app does show up on the location privacy settings.