INNER CODE UNIT · TypeScript
openExistingContact
morenoh149/react-native-contacts · index.ts:35
async function openExistingContact(contact: Contact): Promise<Contact> {
return Contacts.openExistingContact(contact);
}
async function viewExistingContact(contact: {
recordID: string;
}): Promise<Contact | void> {
return Contacts.viewExistingContact(contact);
}
async function editExistingContact(contact: Contact): Promise<Contact> {
return Contacts.editExistingContact(contact);
}
async function updateContact(
contact: Partial<Contact> & { recordID: string }
): Promise<void> {
return Contacts.updateContact(contact);