Mahdi Bashirpour
Mahdi Bashirpour

Reputation: 18803

PermissionsAndroid for iOS in React Native

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

Answers (1)

ikerfah
ikerfah

Reputation: 2862

This library used only with android , Use Third party library Like : https://github.com/yonahforst/react-native-permissions

Upvotes: 2

Related Questions