Browse SDKs · React Native
Platform
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

ParameterTypeRequiredDescription
groupIDstringYesID 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.