SDKsReact Native
Update friend information
Update friend information with the OpenIM React Native SDK.
Call updateFriends() to update every friend in friendUserIDs.
await OpenIMSDK.updateFriends({
friendUserIDs: [friendUserID],
remark: remark,
isPinned: true,
});Parameter description
| Parameter | Type | Required | Description |
|---|---|---|---|
friendUserIDs | string[] | Yes | Friend user IDs to update. |
remark | string | No | New remark. |
isPinned | boolean | No | Whether to pin the friend. |
ex | string | No | New extension string. |
Pass at least one field to update in addition to friendUserIDs. Call the method separately when different friends need different values. After friend information changes, OnFriendInfoChanged is emitted; see Get the friend list for the listener example.
Was this page helpful?