Skip to main content

Reaction List

Overview

The MessageList component is responsible for rendering a list of messages in a chat interface. It manages the display of individual messages, handling any necessary UI elements like timestamps and sender information. The component also includes functionality for displaying loading indicators and empty states when no messages are available.

LMFeedMediaPreviewScreen

Customisations

PropertyTypeDescription
reactionSizenumberDefines the size of the reaction icon.
reactionLeftItemStrokestringSets the stroke color for the left reaction.
reactionRightItemStrokestringSets the stroke color for the right reaction.
reactionItemBorderRadiusnumberDefines the border radius for reaction items.
gapnumberSpecifies the gap between items.
selectedMessageBackgroundColorstringSets the background color of selected messages.
tabOptionColorstringDefines the color for the tab option.

Props

PropertyTypeDescriptionRequired
itemanyRepresents the current item in the list.✔️
chatroomIDanyID of the chatroom associated with the item.✔️
userIdStringifiedanyStringified version of the user ID.✔️
reactionArranyArray containing reactions for the item.
isTypeSentbooleanSpecifies if the item type is 'sent'.
isIncludedbooleanIndicates whether the item is included in the view.✔️
handleLongPressFunctionTriggered when the item is long-pressed.✔️
removeReactionFunctionRemoves a reaction from the item.✔️