Skip to main content

Chat Icon

Overview

LMChatIcon serves as a UI component designed for the purpose of rendering icons, including group icon, user icon and other icons within a chat interface.

GitHub File

LMFeedMediaPreviewScreen

Customisation/Props

The LMChatIcon component requires certain props, some of which are mandatory, while others are optional. Here is a breakdown of the available props along with their types:

ParameterTypeDescriptionOptional
iconUrlstringRepresents the URL of the icon✔️
assetPathobjectRepresents the path of the local image✔️
colorstringRepresents the tint color of the icon✔️
heightnumberRepresents the height of the icon✔️
widthnumberRepresents the width of the icon✔️
iconStyleImageStyleRepresents the style of the icon✔️
boxFit"center" | "contain" | "cover" | "repeat" | "stretch"Defines the fit behavior of the icon inside the box✔️
boxStyleViewStyleRepresents the style of the view✔️

Usage Example

<LMChatIcon
assetPath={require('../../assets/images/chatActive.png')}
iconStyle={
height: 25,
width: 25,
backgroundColor: 'black'
}
/>