Browse SDKs · React Native
SDKsReact Native

Set a local message extension

OpenIM React Native SDK guide for set a local message extension.

Copy

Use setMessageLocalEx() to save local extension data for a message on the current device.

await OpenIMSDK.setMessageLocalEx({
  conversationID,
  clientMsgID,
  localEx: JSON.stringify({ expanded: true }),
});

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesConversation containing the message.
clientMsgIDstringYesTarget message ID.
localExstringYesLocal extension string. It can contain JSON or another format of business extension data.

After the call completes, the local extension data is saved in the message on the current device.