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:
Parameter | Type | Description | Optional |
---|---|---|---|
maxLines | number | Defines the maximum lines to be displayed | ✔️ |
textStyle | TextStyle | Represents the style of the text | ✔️ |
selectable | boolean | Represents the selection behavior of the text | ✔️ |
onTextLayout | (event: NativeSyntheticEvent<TextLayoutEventData>) => void | Callback 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>