Browse SDKs · React Native
SDKsReact Native

Get joined groups by page

OpenIM React Native SDK guide for get joined groups by page.

Copy

Call getJoinedGroupListPage() to retrieve groups joined by the current account in pages.

const groups = await OpenIMSDK.getJoinedGroupListPage({
  offset: 0,
  count: 50,
});

Parameters

| Parameter | Type | Required | Description | | --- | --- | --- | | offset | number | Yes | Pagination offset. Use 0 for the first page. | | count | number | Yes | Number of groups to retrieve. |

To retrieve the next page, set offset to the number of groups already retrieved.

Return value

When the call completes, it returns GroupItem[] for the current page. See Group overview for field descriptions.