Skip to main content

LMChatTextView

LMChatTextView serves as a UI component designed for the purpose of rendering texts within a chat interface.

Props Available

The LMChatTextView 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
maxLinesnumberDefines the maximum lines to be displayed✔️
textStyleTextStyleRepresents the style of the text✔️
selectablebooleanRepresents the selection behavior of the text✔️
onTextLayout(event: NativeSyntheticEvent<TextLayoutEventData>) => voidCallback function executed on change of text layout✔️

Code snippet

<LMChatTextView
textStyle={} // customisable style for text to be rendered
maxLines={} // max lines that the text will take
></LMChatTextView>