Skip to main content

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:

LMFeedPostContent

Props​

Interaction Callbacks​

  • onTextLayout: Callback to be trigerred on change of text layout.

Customisation Props​

PropertyTypeDescription
maxLinesnumberDefines the maximum lines to be displayed.
textStyleTextStyle or TextStyle[]Represents the style of the text.
selectablebooleanDefines the selection behavior of the text.
onTextLayoutFunctionCallback function executed on change of text layout.
childrenReact.ReactNodeContent to be displayed within the text component.

Usage Example​

<LMText
maxLines={2}
textStyle={{
fontSize: 20
}}
>
LMChatView Component
</LMText>