INNER CODE UNIT · TypeScript
getContactsByPhoneNumber
morenoh149/react-native-contacts · index.ts:63
async function getContactsByPhoneNumber(
phoneNumber: string
): Promise<Contact[]> {
return Contacts.getContactsByPhoneNumber(phoneNumber);
}
async function getContactsByEmailAddress(
emailAddress: string
): Promise<Contact[]> {
return Contacts.getContactsByEmailAddress(emailAddress);
}
async function checkPermission(): Promise<PermissionType> {
return Contacts.checkPermission();
}
async function requestPermission(): Promise<PermissionType> {
return Contacts.requestPermission();