Chat TextView
Overview
LMChatTextView serves as a UI component designed for the purpose of rendering texts within a chat interface.
GitHub File

Customisation/Props
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 | Function | Callback function executed on change of text layout | ✔️ |
Usage Example
<LMChatTextView
maxLines={2}
textStyle={{
fontSize: 20
}}
>
LMChatView Component
</LMChatTextView>