SDKsReact Native
Leave a group
OpenIM React Native SDK guide for leave a group.
Call quitGroup() to leave a group that the current account has joined.
await OpenIMSDK.quitGroup(groupID);groupID is the ID of the group to leave. A group owner must transfer ownership before leaving the group.
Return value
When the call completes, the current account has left the target group. After the current account leaves successfully, OnJoinedGroupDeleted is triggered and its callback receives the corresponding group information. See Group overview for event handling.
Was this page helpful?