react-native-contacts
Advanced tools
Comparing version 2.1.9 to 2.2.0
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "2.1.9", | ||
"version": "2.2.0", | ||
"description": "React Native Contacts (android & ios)", | ||
@@ -10,0 +10,0 @@ "nativePackage": true, |
@@ -63,14 +63,3 @@ # React Native Contacts | ||
## API Implemented methods | ||
| Feature | iOS | Android | | ||
| ------- | --- | ------- | | ||
| `getAll` | ✔ | ✔ | | ||
| `addContact` | ✔ | ✔ | | ||
| `openContactForm` | ✔ | ✔ | | ||
| `updateContact` | ✔ | ✔ | | ||
| `getContactsMatchingString` | ✔ | ✔ | | ||
| `deleteContact` | ✔ | X | | ||
## API | ||
* `getAll` (callback) - returns *all* contacts as an array of objects | ||
@@ -87,7 +76,7 @@ * `getAllWithoutPhotos` - same as `getAll` on Android, but on iOS it will not return uris for contact photos (because there's a significant overhead in creating the images) | ||
All callbacks follow node-style: | ||
Callbacks follow node-style: | ||
```sh | ||
callback <Function> | ||
err <Error> | ||
contacts <Array> | ||
response <Object> | ||
``` | ||
@@ -186,3 +175,3 @@ | ||
//delete the second record | ||
Contacts.deleteContact(contacts[1], (err) => { | ||
Contacts.deleteContact(contacts[1], (err, recordId) => { | ||
if (err) throw err; | ||
@@ -197,3 +186,3 @@ // contact deleted | ||
```es | ||
Contacts.deleteContact({recordID: 1}, (err) => { | ||
Contacts.deleteContact({recordID: 1}, (err, recordId) => { | ||
if (err) throw err; | ||
@@ -200,0 +189,0 @@ // contact deleted |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
167294
228