join a Group

groupType is necessary when joining a AVChatRoom on Web.

Work groups (Work) and public groups (Public) do not allows group members to view messages sent before they join the group. To enable the feature, submit a change request by referring to Configuration Change Ticket.

Parameter details

Parameter name Parameter type Required Description
groupID string yes The ID of the group to join.
message string yes The message of the joining application.

Returned template


    code : number
    desc : string

Return value details

name type description
code number Request result: Error codes. 0 means success.
desc string The description of the error. It will be empty if success.

Code example

import { TencentImSDKPlugin } from 'react-native-tim-js';

const groupID = 'groupID',
    message = 'hello';

const joinGroupRes = await TencentImSDKPlugin.v2TIMManager.joinGroup(
if (joinGroupRes.code === 0) {


results matching ""

    No results matching ""