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

Expected ref to be a function, a string, an object returned by React.createRef(), or null #75

Closed AbdallaEmadEldinAbdalla closed 1 year ago

AbdallaEmadEldinAbdalla commented 1 year ago

Expected ref to be a function, a string, an object returned by React.createRef(), or null

i got this issue on IOS for no reasons. it was working fine 2 weeks ago and now the app keep crashing with this error message.

fawaz-ahmed commented 1 year ago

@AbdallaEmadEldinAbdalla a new version 3.0.0 was published last week. As a quick fix you can downgrade to version 2.3.7 Also can you please help in reproducing the crash. Can you share your react, react native versions, ts or js ? how are you using ? so that I'm able to reproduce. Thanks

fawaz-ahmed commented 1 year ago

@AbdallaEmadEldinAbdalla can you please let me know if this issue is resolved ? Since ReadMore is a functional component, using a ref along will not work.

fawaz-ahmed commented 1 year ago

Closing due to inactivity.

AbdallaEmadEldinAbdalla commented 1 year ago

@fawaz-ahmed no it's not working i made a fast replacement and stopped using the package tbh i was on hurry