Closed darekg11 closed 5 years ago
Thanks for you contribution :-)
Thank you for merging :+1:
Are you planning to release new version any time soon? I would love to switch to a official npm distribution in my package.json
instead of using my forked github repo :)
Done ! Sorry for the delay https://github.com/bamlab/react-native-image-header-scroll-view/releases/tag/0.9.0
Thank you @Nhacsam 👍
Hello, we have been using this great library but there is a issue when you use
HeaderImageScrollView
inside aView
that also hasonLayout
callback attached then rotating the device will cause the error to come up in React-Native warning box stating thatsetState
can't be used on unmounted component.This is happening because:
The actual callback with
this.setState
call might indeed happen when the component is unmounted. Therefore I have added additional guard inside that callback to make sure thatsetState
won't fire ifcontainer
does not exist anymore.