Skip to main content

Home Feed Item

Overview

The HomeFeedItem component is responsible for rendering individual feed items within a home feed. It displays information such as the chatroom title, description, participants, and messages, and provides interaction options like joining a chatroom or viewing messages. The component also manages dynamic states like whether the user has joined a chatroom or if the chatroom is pinned.

LMFeedMediaPreviewScreen

Customisation

PropertyTypeDescription
avatarAvatarRepresents the styling for the avatar
titleTitleRepresents the styling for the title text
lastConversationLastConversationRepresents the styling for the last conversation text
unreadCountUnreadCountRepresents the styling for the unread message count
lastConversationTimeLastConversationTimeRepresents the styling for the last conversation time

Avatar

PropertyTypeDescription
borderRadiusstringDefines the border radius of avatar

Title

PropertyTypeDescription
colorstringDefines the color of title text
fontSizenumberDefines the font size of title text
fontFamilystringDefines the font family of title text

LastConversation

PropertyTypeDescription
colorstringDefines the color of the last conversation text
fontSizenumberDefines the font size of the last conversation text
fontFamilystringDefines the font family of the last conversation text

UnreadCount

PropertyTypeDescription
colorstringDefines the color of unread count text
fontSizenumberDefines the font size of unread count
fontFamilystringDefines the font family of unread count
borderRadiusstringDefines the border radius of unread count badge
backgroundColorstringDefines the background color of unread count badge

LastConversationTime

PropertyTypeDescription
colorstringDefines the color of the last conversation time
fontSizenumberDefines the font size of the last conversation time
fontFamilystringDefines the font family of the last conversation time

Props

PropertyTypeDescriptionRequired
avatarstringThe avatar URL of the chatroom or participant✔️
titlestringThe title or name of the chatroom✔️
lastMessagestringThe last message text in the chatroom✔️
timestringThe time of the last message✔️
pinnedbooleanWhether the chatroom is pinned✔️
unreadCountnumberThe number of unread messages✔️
lastConversationanyThe last conversation data in the chatroom✔️
chatroomIDnumberThe unique ID of the chatroom✔️
lastConversationMemberstringThe last member involved in the conversation
isSecretbooleanWhether the chatroom is secret✔️
deletedBystringThe user who deleted the chatroom (if applicable)
inviteReceiveranyThe receiver of the chatroom invitation (if applicable)
chatroomTypenumberThe type of the chatroom✔️
muteStatusbooleanThe mute status of the chatroom✔️