INNER CODE UNIT · TypeScript
requestPermission
morenoh149/react-native-contacts · index.ts:79
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();
}
async function getGroup(identifier: string): Promise<Group | null> {
return Contacts.getGroup(identifier);
}
async function deleteGroup(identifier: string): Promise<boolean> {