UNPKG

@boindahood/text-truncate-show-more

Version:

A simple React Native component to truncate long text and toggle between "show more" / "show less".

10 lines (9 loc) 308 B
import React from 'react'; import { StyleProp, TextStyle } from 'react-native'; interface IProps { children?: string; style?: StyleProp<TextStyle>; numberOfLines?: number; } declare const TextTruncate: React.MemoExoticComponent<(props: IProps) => React.JSX.Element>; export default TextTruncate;