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.

LMFeedPostContent

Callbacks

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

Customisation

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.