react-native-contacts
Advanced tools
Comparing version 2.2.5 to 3.0.0
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "2.2.5", | ||
"version": "3.0.0", | ||
"description": "React Native Contacts (android & ios)", | ||
@@ -10,0 +10,0 @@ "nativePackage": true, |
@@ -111,6 +111,18 @@ # React Native Contacts | ||
#### Android | ||
##### API 23+ | ||
Android requires allowing permissions with https://facebook.github.io/react-native/docs/permissionsandroid.html | ||
The `READ_CONTACTS` permission is automatically added to the `AndroidManifest.xml`, so you just need request it. If your app also needs to create contacts, don't forget to add `WRITE_CONTACTS` permission to the manifest and request it at runtime. | ||
The `READ_CONTACTS` permission is automatically added to `AndroidManifest.xml`, so you just need request it. If your app creates contacts add `WRITE_CONTACTS` permission to `AndroidManifest.xml` and request the permission at runtime. | ||
```xml | ||
... | ||
<uses-permission android:name="android.permission.WRITE_CONTACTS" /> | ||
... | ||
``` | ||
If you wish to support older versions of Android (API level <= 22), you may need to add `READ_PROFILE` and/or `WRITE_PROFILE` permissions as well to `AndroidManifest.xml` ([#331](https://github.com/rt2zz/react-native-contacts/issues/331)). | ||
##### API 22 and below | ||
Add `READ_PROFILE` and/or `WRITE_PROFILE` permissions to `AndroidManifest.xml` | ||
```xml | ||
... | ||
<uses-permission android:name="android.permission.READ_PROFILE" /> | ||
... | ||
``` | ||
@@ -117,0 +129,0 @@ ## API |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176954
314