Browse SDKs · React Native
SDKsReact Native

Remove a user from the blacklist

Unblock a user with the OpenIM React Native SDK.

Copy

Call removeBlack() to remove a specified user from the current account's blocklist.

await OpenIMSDK.removeBlack(blackUserID);

blackUserID is the user ID to unblock. After the user is removed, OnBlackDeleted is emitted. See Get the blocklist for the listener example.