React-native-animatable: componentWillReceiveProps is deprecated

Created on 2 Aug 2019  路  19Comments  路  Source: oblador/react-native-animatable

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

Most helpful comment

280 waiting for confirmation

All 19 comments

Any update on this ?

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

Simulator Screen Shot - iPhone X - 2019-08-25 at 07 29 01

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HananeAlSamrout picture HananeAlSamrout  路  3Comments

kamek-pf picture kamek-pf  路  8Comments

TrustDec picture TrustDec  路  3Comments

quangtruong16994 picture quangtruong16994  路  5Comments

ovaris picture ovaris  路  4Comments