fawaz-ahmed/react-native-read-more

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

Closed this issue · 4 comments

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.

@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

@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.

Closing due to inactivity.

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