fawaz-ahmed / react-native-read-more

React native library to show text in a condensed way and expand when needed. Drop in replacement for Text component and highly customizable. Can be used with expo or native cli for react native.
https://www.npmjs.com/package/@fawazahmed/react-native-read-more
MIT License
274 stars 37 forks source link

Fix Issue 63: custom function when See More pressed #64

Closed ChrisLFieldsII closed 2 years ago

ChrisLFieldsII commented 2 years ago

This PR introduces a new prop named onSeeMoreBlocked that allows a custom callback to use vs the default See More expand. For example, pressing See More with this prop could open a modal instead of expanding the text.

Reference issue 63: https://github.com/fawaz-ahmed/react-native-read-more/issues/63