SDKsReact Native
Create a rich-text reply
OpenIM React Native SDK guide for create a rich-text reply.
Use createAdvancedQuoteMessage() to create a rich-text reply with an original-message reference and text entities.
const message = await OpenIMSDK.createAdvancedQuoteMessage({
text: 'I have reviewed the related link.',
message: originalMessage,
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Raw reply text. |
message | MessageItem | Yes | Original message being replied to. |
messageEntityList | MessageEntity[] | No | Entities in the text. |
MessageEntity uses type, offset, and length to describe an entity, with optional url and info. The call returns a MessageItem ready to send.
Was this page helpful?