react-native-contacts
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "React Native Contacts (android & ios)", | ||
@@ -10,0 +10,0 @@ "nativePackage": true, |
@@ -20,3 +20,5 @@ # React Native Contacts | ||
## API | ||
`getAll` (callback) - returns *all* contacts as an array of objects | ||
`getAll` (callback) - returns *all* contacts as an array of objects | ||
`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) | ||
`getPhotoForId(contactId, callback)` - returns a URI (or null) for a contacts photo | ||
`addContact` (contact, callback) - adds a contact to the AddressBook. | ||
@@ -48,3 +50,3 @@ `updateContact` (contact, callback) - where contact is an object with a valid recordID | ||
{ | ||
recordID: 1, | ||
recordID: '6b2237ee0df85980', | ||
company: "", | ||
@@ -63,3 +65,14 @@ emailAddresses: [{ | ||
}], | ||
thumbnailPath: "", | ||
thumbnailPath: 'content://com.android.contacts/display_photo/3', | ||
postalAddresses: | ||
[ | ||
{ | ||
postCode: 'Postcooode', | ||
city: 'City', | ||
neighborhood: 'neighborhood', | ||
street: 'Home Street', | ||
formattedAddress: 'Home Street\nneighborhood\nCity Postcooode', | ||
label: 'work' | ||
} | ||
] | ||
} | ||
@@ -66,0 +79,0 @@ ``` |
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
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
65936
224