react-native-animatable
react-native-animatable copied to clipboard
componentWillReceiveProps is deprecated
Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.
Please update the following components: withAnimatable(View)
Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks
Any update on this ?
This place in this component is what needs to be updated, I think:
https://github.com/oblador/react-native-animatable/blob/1c5c0b597536ea059dc8fb7f52e17cab5f796746/createAnimatableComponent.js#L322
Any update?????
I think the repo is abandoned at this point, no commits since march and no activity on issues.
I'd be really happy to get some help with this, I've been swamped with work for some time and have many packages to maintain.
That's fine! Thought you'd left, you should open an issue with a call for maintainers.
Same issue here..
#280 waiting for confirmation
@wanderbon you PR breaks
@IntelliJAbhishek
I did commit new changes. But I deleted getDerivedStateFromProps and use componentDidUpdate.
Any update on this? Still getting the deprecation warning.
@ramonvermeulen
Maybe you use react-native-modal?
@oblador When will you update ?
For now I just updated this to use UNSAFE_componentWillReceiveProps
to suppress the errors: https://github.com/tomduncalf/react-native-animatable/commit/6557a65d72b64960facc072995c28cd7c5e5ad70. Feel free to use my branch for now
@oblador hey, any news? this issue has been open for over two months.
When you did update the package?
The latest version, 1.3.3, does no longer produce the warning for me 🎉
This is still a problem
Any update on the underlying issue? The warning is gone. But instead using UNSAFE_componentWillReceiveProps in the code.