Reputation: 18803
I use this code to get user permission in android
async componentWillMount() {
await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION);
}
How to use this for ios
?
Upvotes: 1
Views: 7068
Reputation: 2862
This library used only with android , Use Third party library Like : https://github.com/yonahforst/react-native-permissions
Upvotes: 2