Skip to main content

Message Bubble

Overview

The Messages component in this file is responsible for rendering the list of chat messages within a chatroom. It handles message rendering, updates, and the layout for displaying user messages, media, and interactions like replies or reactions. The component likely manages message-related features like timestamps, avatars, and typing indicators.

LMFeedMediaPreviewScreen

Callbacks

  • onTapToUndoProp: Triggered when the user taps to undo an action. Executes the provided function when the undo action is performed.

Customisations

PropertyTypeDescription
borderRadiusnumberDefines the border radius of message bubbles
sentMessageBackgroundColorstringBackground color of sent messages
receivedMessageBackgroundColorstringBackground color of received messages
selectedBackgroundColorstringBackground color when a message is selected
selectedMessageBackgroundColorstringBackground color of the selected message
textStylesTextStylesStyles for message text
linkTextColorstringColor of the hyperlink text
taggingTextColorstringColor of the tagging text
selectedMessagesBackgroundColorstringBackground color for multiple selected messages
stateMessagesTextStylesStateMessagesTextStylesStyles for state messages text
messageReceivedHeaderMessageReceivedHeaderStyles for message received header
dateStateMessageDateStateMessageStyles for date state message text
playPauseBoxIconPlayPauseBoxIconStyles for play/pause icon box
voiceNoteSliderVoiceNoteSliderStyles for voice note slider
pollVoteSliderColorPollVoteSliderColorStyles for poll vote slider
imageVideoAttachmentsBorderRadiusnumberBorder radius for image/video attachments

TextStyles

PropertyTypeDescription
fontSizenumberFont size of the text
fontStylestringFont style of the text
fontFamilystringFont family of the text

StateMessagesTextStyles

PropertyTypeDescription
fontSizenumberFont size of the state message text
fontStylestringFont style of the state message text
fontFamilystringFont family of the state message text
colorstringColor of the state message text
backgroundColorstringBackground color of the state message

MessageReceivedHeader

PropertyTypeDescription
senderNameStylesSenderNameStylesStyles for the sender's name
senderDesignationStylesSenderDesignationStylesStyles for the sender's designation

SenderNameStyles

PropertyTypeDescription
fontSizenumberFont size of the sender's name
fontFamilystringFont family of the sender's name
colorstringColor of the sender's name

SenderDesignationStyles

PropertyTypeDescription
fontSizenumberFont size of the sender's designation
fontFamilystringFont family of the sender's designation
colorstringColor of the sender's designation

DateStateMessage

PropertyTypeDescription
fontSizenumberFont size of the date state message
fontFamilystringFont family of the date state message
colorstringColor of the date state message
backgroundColorstringBackground color of the date state message

PlayPauseBoxIcon

PropertyTypeDescription
backgroundColorstringBackground color of play/pause icon box

VoiceNoteSlider

PropertyTypeDescription
minimumTrackTintColorstringColor of the minimum track of the slider
thumbTintColorstringColor of the thumb of the slider

PollVoteSliderColor

PropertyTypeDescription
backgroundColorstringBackground color of the poll vote slider

Props

PropertyTypeDescriptionRequired
itemanyThe data item being rendered.✔️
indexnumberThe index of the current item in the list.✔️
isStateIncludedbooleanIndicates if the state is included for the current item.✔️
isIncludedbooleanIndicates if the item is included.✔️
onTapToUndoPropFunctionCallback triggered when the user taps to undo an action.