Browse SDKs · React Native
Platform
SDKsReact Native

Get group information

OpenIM React Native SDK guide for get group information.

Copy

Call getSpecifiedGroupsInfo() to retrieve information for specific groups by group ID.

const groups = await OpenIMSDK.getSpecifiedGroupsInfo([
  'group-001',
  'group-002',
]);

Parameters

ParameterTypeRequiredDescription
groupIDsstring[]YesIDs of the groups to retrieve.

Return value

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