UNPKG

@boindahood/text-truncate-show-more

Version:

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

14 lines (13 loc) 465 B
import React from 'react'; import { StyleProp, TextStyle } from 'react-native'; interface IProps { children?: string; textStyle?: StyleProp<TextStyle>; numberOfLines?: number; textShowMore?: string; textShowLess?: string; textShowMoreStyle?: StyleProp<TextStyle>; textShowLessStyle?: StyleProp<TextStyle>; } export declare const TextShowMore: React.MemoExoticComponent<(props: IProps) => React.JSX.Element>; export default TextShowMore;