Set the friend info for a specific friend.

Parameter details

Parameter name Parameter type Required Description
userID string yes The ID of the target user.
friendRemark string no The remark for the target user.
friendCustomInfo StringMap no The custom info for the target user.

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 setFriendInfoRes = await TencentImSDKPlugin.v2TIMManager
        { custom: 'custom' }
if (setFriendInfoRes.code === 0) {


results matching ""

    No results matching ""