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.
Callbacks
onTextLayout
: Callback to be trigerred on change of text layout.
Customisation
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. |