INNER CODE UNIT · TypeScript
checkPermission
morenoh149/react-native-contacts · index.ts:75
async function checkPermission(): Promise<PermissionType> {
return Contacts.checkPermission();
}
async function requestPermission(): Promise<PermissionType> {
return Contacts.requestPermission();
}
async function writePhotoToPath(
contactId: string,
file: string
): Promise<boolean> {
return Contacts.writePhotoToPath(contactId, file);
}
async function getGroups(): Promise<Group[]> {
return Contacts.getGroups();
}