SDKsReact Native
Check group membership
OpenIM React Native SDK guide for check group membership.
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.
Was this page helpful?