INNER CODE UNIT · TypeScript
updateContact
morenoh149/react-native-contacts · index.ts:49
async function updateContact(
contact: Partial<Contact> & { recordID: string }
): Promise<void> {
return Contacts.updateContact(contact);
}
async function deleteContact(contact: Contact): Promise<void> {
return Contacts.deleteContact(contact);
}
async function getContactsMatchingString(str: string): Promise<Contact[]> {
return Contacts.getContactsMatchingString(str);
}
async function getContactsByPhoneNumber(
phoneNumber: string
): Promise<Contact[]> {
return Contacts.getContactsByPhoneNumber(phoneNumber);