SDKsReact Native
Create forward message
Construct a forwarded message from an existing message using the OpenIM React Native SDK.
Construct a forward message referencing an existing message:
const message = await OpenIMSDK.createForwardMessage(sourceMessage);Parameters
Supply sourceMessage as the complete MessageItem object of the message being forwarded.
Return value
A resolved Promise returns a newly created MessageItem ready to be dispatched.
This method builds the message structure strictly in client memory; it does not dispatch messages to the server or trigger lifecycle events. After initialization, invoke Send message to deliver it to a target conversation. To bundle multiple messages into a single combined forwarded card, see Create merger message.
Was this page helpful?