react-native-contacts 8.0.3 → 8.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs lts
1
+ nodejs 22.15.0
package/README.md CHANGED
@@ -194,6 +194,16 @@ If you'd like to read/write the contact's notes, call the `iosEnableNotesUsage(t
194
194
  * `requestPermission()`: Promise<string> - request permission to access Contacts _ios only_
195
195
  * `writePhotoToPath()` - writes the contact photo to a given path _android only_
196
196
 
197
+ ### ios group specific functions
198
+ * `getGroups()`: Promise - returns an array of all groups. Each group contains `{ identifier: string; name: string;}`
199
+ * `getGroup: (identifier: string)`: Promise - returns the group matching the provided group identifier.
200
+ * `deleteGroup(identifier: string)`: Promise - deletes a group by group identifier.
201
+ * `updateGroup(identifier: string, groupData: Pick<Group, 'name'>`: Promise - updates an existing group's details. You can only change the group name.
202
+ * `addGroup(group: Pick<Group, 'name'>)`: Promise - adds a new group. Group name should be provided.
203
+ * `contactsInGroup(identifier: string)`: Promise - retrieves all contacts within a specified group.
204
+ * `addContactsToGroup(groupIdentifier: string, contactIdentifiers: string[])`: Promise - adds contacts to a group. Only contacts with id that has `:ABperson` as suffix can be added.
205
+ * `removeContactsFromGroup(groupIdentifier: string, contactIdentifiers: string[])`: Promise - removes specified contacts from a group.
206
+
197
207
  ## Example Contact Record
198
208
  ```js
199
209
  {