Skip to main content

Member List

Overview

The CommonAllMembers component in this file is responsible for rendering the list of all members in a chatroom. It fetches and displays member details like their name and profile picture, typically for group chats or communities.

GitHub File:

LMFeedMediaPreviewScreen

Styling Customisation

These styling customisations can be applied through the setMemberDirectoryStyle method on the STYLES class

PropertyTypeDescription
userNameStylesUserNameStylesDefines the style for the user's name.
userTitleStylesUserTitleStylesDefines the style for the user's title.
searchPlaceholderTextstringPlaceholder text for the search input.

UserNameStyles

PropertyTypeDescription
colorstringColor of the user's name text.
fontSizenumberFont size of the user's name.
fontFamilystringFont family of the user's name.

UserTitleStyles

PropertyTypeDescription
colorstringColor of the user's title text.
fontSizenumberFont size of the user's title.
fontFamilystringFont family of the user's title.

Usage Example

  • Call the setMemberDirectoryStyle method on the STYLES class to set styling customisations.
import {STYLES} from "@likeminds.community/chat-rn-core"

STYLES.setMemberDirectoryStyle({
searchPlaceholderText: "your placeholder text",
userNameStyles: {
fontSize: 12,
color: 'red'
}
})