react-native-contacts
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -6,3 +6,4 @@ declare module 'react-native-contacts' { | ||
export function addContact(contact: Contact, callback: (error?: any) => void): void; | ||
export function openContactForm(contact: Contact, callback: (error?: any) => void): void; | ||
export function openContactForm(contact: Contact, callback: (error: any, contact: Contact) => void): void; | ||
export function openExistingContact(contact: Contact, callback: (error: any, contact: Contact) => void): void; | ||
export function updateContact(contact: Contact, callback: (error?: any) => void): void; | ||
@@ -13,2 +14,3 @@ export function deleteContact(contact: Contact, callback: (error?: any) => void): void; | ||
export function requestPermission(callback: (error: any, result: 'authorized' | 'denied' | 'undefined') => void): void; | ||
export function writePhotoToPath(contactId: string, file: string, callback: (error: any, result: boolean) => void): void; | ||
@@ -15,0 +17,0 @@ export interface EmailAddress { |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "React Native Contacts (android & ios)", | ||
@@ -10,0 +10,0 @@ "nativePackage": true, |
@@ -153,2 +153,3 @@ # React Native Contacts | ||
* `openContactForm` (contact, callback) - create a new contact and display in contactsUI. | ||
* `openExistingContact` (contact, callback) - where contact is an object with a valid recordID | ||
* `updateContact` (contact, callback) - where contact is an object with a valid recordID | ||
@@ -159,2 +160,3 @@ * `deleteContact` (contact, callback) - where contact is an object with a valid recordID | ||
* `requestPermission` (callback) - request permission to access Contacts _ios only_ | ||
* `writePhotoToPath` (callback) - writes the contact photo to a given path _android only_ | ||
@@ -161,0 +163,0 @@ Callbacks follow node-style: |
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
193625
58
349