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

This library is not working in web #80

Closed Aayushsctib closed 1 year ago

Aayushsctib commented 1 year ago

When using this library in web the text is truncating but see more button is not visible

fawaz-ahmed commented 1 year ago

When using this library in web the text is truncating but see more button is not visible

This library is not compatible with web. It depends on onLayout and onTextLayout callbacks from Text component in react native to measure and identify see more placement.

fawaz-ahmed commented 1 year ago

Duplicate https://github.com/fawaz-ahmed/react-native-read-more/issues/79