react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

[React v16.8.4] Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.

Open kufii opened this issue 5 years ago • 12 comments

When running with the latest version of React, the following warning is thrown:

componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.

kufii avatar May 05 '19 15:05 kufii

Estou com o mesmo erro

RogerioNascimento-dev avatar Sep 05 '19 23:09 RogerioNascimento-dev

Any solution?

alanperius avatar Sep 20 '19 21:09 alanperius

I hope the owner of this repo could tweak a little bit to get it updated...

kockok avatar Dec 03 '19 10:12 kockok

any solution yet?

marvin210 avatar Dec 24 '19 13:12 marvin210

can somebody test this pull request https://github.com/mastermoo/react-native-action-button/pull/329?

sibelius avatar Dec 24 '19 14:12 sibelius

I tried changing "componentWillReceiveProps" to "UNSAFE_componentWillReceiveProps" inside "react-native-action-button/ActionButton.js" and I think it works just fine. The react-native-vector-icons which doesn't works before, works fine also after changing it.

marvin210 avatar Dec 24 '19 14:12 marvin210

Should be fixed with #333

jschloer avatar Jan 13 '20 16:01 jschloer

Should be fixed with #333

npm no update? Still fetching 2.8.5

kockok avatar Jan 15 '20 09:01 kockok

Any fixes about this error?

GabrielDvt avatar Apr 12 '20 15:04 GabrielDvt

I tried changing "componentWillReceiveProps" to "UNSAFE_componentWillReceiveProps" inside "react-native-action-button/ActionButton.js" and I think it works just fine. The react-native-vector-icons which doesn't works before, works fine also after changing it.

This works for me

BuddhaLee avatar Apr 28 '20 15:04 BuddhaLee

I tried changing "componentWillReceiveProps" to "UNSAFE_componentWillReceiveProps" inside "react-native-action-button/ActionButton.js" and I think it works just fine. The react-native-vector-icons which doesn't works before, works fine also after changing it.

This is working fine. Not sure if everyone is getting this warning to make a PR about it

samuelmarina avatar Aug 26 '20 18:08 samuelmarina

When will NPM be updated?

hengkx avatar Sep 18 '20 03:09 hengkx