INNER CODE UNIT · TypeScript
getCount
morenoh149/react-native-contacts · index.ts:19
async function getCount(): Promise<number> {
return Contacts.getCount();
}
async function getPhotoForId(contactId: string): Promise<string> {
return Contacts.getPhotoForId(contactId);
}
async function addContact(contact: Partial<Contact>): Promise<Contact> {
return Contacts.addContact(contact);
}
async function openContactForm(contact: Partial<Contact>): Promise<Contact> {
return Contacts.openContactForm(contact);
}
async function openExistingContact(contact: Contact): Promise<Contact> {
return Contacts.openExistingContact(contact);