Browse SDKs · React Native
SDKsReact Native

Check group membership

OpenIM React Native SDK guide for check group membership.

Copy

Call isJoinGroup() to check whether the current account has joined a group.

const isJoined = await OpenIMSDK.isJoinGroup('group-001');

Parameters

| Parameter | Type | Required | Description | | --- | --- | --- | | groupID | string | Yes | ID of the group to check. |

Return value

When the call completes, it returns a boolean: true if the current account has joined the group, or false otherwise.