INNER CODE UNIT · TypeScript
getGroup
morenoh149/react-native-contacts · index.ts:93
async function getGroup(identifier: string): Promise<Group | null> {
return Contacts.getGroup(identifier);
}
async function deleteGroup(identifier: string): Promise<boolean> {
return Contacts.deleteGroup(identifier);
}
async function updateGroup(identifier: string, groupData: Pick<Group, 'name'>): Promise<Group> {
return Contacts.updateGroup(identifier, groupData);
}
async function addGroup(group: Pick<Group, 'name'>): Promise<Group>{
return Contacts.addGroup(group);
}
async function contactsInGroup(identifier: string): Promise<Contact[]> {
return Contacts.contactsInGroup(identifier);
}
async function addContactsToGroup(groupIdentifier: string, contactIdentifiers: string[]): Promise<boolean> {
return Contacts.addContactsToGroup(groupIdentifier, contactIdentifiers);
}