react native package to toggle number of lines on react native text
npm install react-native-toggle-more-less
import { RnViewMoreLess } from 'react-native-toggle-more-less';
// ...
<RnViewMoreLess
numberOfLines={4}
desc={textToDisplay}
containerStyle={styles.viewMoreContainer}
descStyle={styles.descStyle}
moreText={'show more'}
moreTextStyle={styles.moreLessTextStyle}
lessText="show less"
lessTextStyle={styles.moreLessTextStyle}
/>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library