react-native-view-more-text
A super lightweight plugin to expand/collapse text in React-Native. Truncated text is ended with dotdotdot.
Working on IOS/Android
Installation
npm install --save react-native-view-more-text
Usage
-
numberOfLines(required): Number of lines to be displayed.
-
renderViewMore: Render view-more component
-
renderViewLess: Render view-less component
-
afterCollapse: Callback after collapsing
-
afterExpand: Callback after expanding
-
textStyle: Style is passed to
Text
insideViewMoreText
(Refer to this PR#8)
; let Example = React