Text
Overview
The LMText
component is used to render customizable text in the LikeMinds React Native application, allowing for various styling options and interactivity through press events.
GitHub File:
Props
Interaction Callbacks
onTextLayout
: Callback to be trigerred on change of text layout.
Customisation Props
Property | Type | Description |
---|---|---|
maxLines | number | Defines the maximum lines to be displayed. |
textStyle | TextStyle or TextStyle[] | Represents the style of the text. |
selectable | boolean | Defines the selection behavior of the text. |
onTextLayout | Function | Callback function executed on change of text layout. |
children | React.ReactNode | Content to be displayed within the text component. |
Usage Example
<LMText
maxLines={2}
textStyle={{
fontSize: 20
}}
>
LMChatView Component
</LMText>