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.
Removing deprecated proptypes for Text component.
Allow collapse and expand via collapsed
prop.
For more information see issue https://github.com/fawaz-ahmed/react-native-read-more/issues/61
Breaking changes:
onSeeMoreBlocked
replaced with onSeeMore
No impact changes:
animate={false}
, it will not enable global layout animation in andoridNew props added:
collapsed
onSeeMore
onSeeLess
This feature will allow users to open a modal or do any other operation when see more is pressed.
Issue: https://github.com/fawaz-ahmed/react-native-read-more/issues/63 PR: https://github.com/fawaz-ahmed/react-native-read-more/pull/64
Thanks to @ChrisLFieldsII for adding this feature
Make seeMoreContainerStyleSecondary type optional in index.ts
Transpile package Add example and unwanted files to .npmignore
Handle any View component inside children (1 level deep nested). Update props to use TextProps Remove preserve line break prop. Update Readme for usage with HTML text