SDKsReact Native
Create a reply message
OpenIM React Native SDK guide for create a reply message.
Use createQuoteMessage() to create a reply message with the complete original message object.
const message = await OpenIMSDK.createQuoteMessage({
text: 'I agree with this approach.',
message: originalMessage,
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Reply text. |
message | MessageItem | Yes | Original message being replied to. |
The call returns a new MessageItem ready to send. When rendering replies, handle the case where the original message has been deleted or cannot be displayed.
Was this page helpful?