react-native-animatable icon indicating copy to clipboard operation
react-native-animatable copied to clipboard

componentWillReceiveProps is deprecated

Open IntelliJAbhishek opened this issue 4 years ago • 19 comments

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

IntelliJAbhishek avatar Aug 02 '19 11:08 IntelliJAbhishek

Any update on this ?

uxxman avatar Aug 14 '19 12:08 uxxman

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

JackKenney avatar Aug 16 '19 16:08 JackKenney

Any update?????

Guilleanto avatar Aug 18 '19 04:08 Guilleanto

I think the repo is abandoned at this point, no commits since march and no activity on issues.

Javi avatar Aug 20 '19 20:08 Javi

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.

oblador avatar Aug 20 '19 20:08 oblador

That's fine! Thought you'd left, you should open an issue with a call for maintainers.

Javi avatar Aug 20 '19 20:08 Javi

Same issue here..

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

louicoder avatar Aug 25 '19 04:08 louicoder

#280 waiting for confirmation

wanderbon avatar Aug 27 '19 12:08 wanderbon

@wanderbon you PR breaks

IntelliJAbhishek avatar Sep 02 '19 06:09 IntelliJAbhishek

@IntelliJAbhishek

I did commit new changes. But I deleted getDerivedStateFromProps and use componentDidUpdate.

wanderbon avatar Sep 02 '19 07:09 wanderbon

Any update on this? Still getting the deprecation warning.

ramonvermeulen avatar Sep 06 '19 08:09 ramonvermeulen

@ramonvermeulen

Maybe you use react-native-modal?

wanderbon avatar Sep 06 '19 08:09 wanderbon

@oblador When will you update ?

mertozylmz avatar Sep 17 '19 22:09 mertozylmz

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

tomduncalf avatar Oct 05 '19 13:10 tomduncalf

@oblador hey, any news? this issue has been open for over two months.

mikedizon avatar Oct 07 '19 14:10 mikedizon

When you did update the package?

DavyMassoneto avatar Nov 13 '19 15:11 DavyMassoneto

The latest version, 1.3.3, does no longer produce the warning for me 🎉

LinusU avatar Feb 04 '20 10:02 LinusU

This is still a problem

d4rky-pl avatar May 13 '20 11:05 d4rky-pl

Any update on the underlying issue? The warning is gone. But instead using UNSAFE_componentWillReceiveProps in the code.

rolf-thomas avatar Jun 30 '20 13:06 rolf-thomas