Message List
The Channel screen alone lacks a user interface (UI) and requires additional components to function properly, with the most crucial one being the MessageList component. The MessageList can be considered as a specialized FlashList, specifically designed for displaying messages.
Props Required
Property | Type | Description | Optional |
---|---|---|---|
chatroomID | string | Chatroom Id | ✔️ |
handleLongPress | string | Method to handle long press on messages | ✔️ |
handleClick | any | Method to handle press on messages once message is selected | ✔️ |
removeReaction | any | Method to remove a reaction | ✔️ |
onTapToUndo | any | Method to handle on tap to undo functionality for DM | ✔️ |
handleFileUpload | any | Method to handle file upload | ✔️ |
navigation | any | Navigation prop to handle navigation | ✔️ |
ref | any | Message input reference | ✔️ |
Code snippet
<MessageList
chatroomID={chatroomID}
handleLongPress={handleLongPress}
handleClick={handleClick}
removeReaction={removeReaction}
onTapToUndo={onTapToUndo}
handleFileUpload={handleFileUpload}
navigation={navigation}
ref={refInput}
/>