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

depreciation issue: componentWillRecieveProps is depreciated

Open mrkking opened this issue 6 years ago • 12 comments

Screen Shot 2019-08-28 at 9 36 11 PM

depreciation issue: componentWillRecieveProps is depreciated and will be removed in the next release warning pops up

react-native: 0.60.5

mrkking avatar Aug 29 '19 01:08 mrkking

Looks like duplicate of #314 for now.

Haven't seen any movement on this project for awhile to indicate it might be resolved anytime soon?

macfanatic avatar Oct 04 '19 14:10 macfanatic

You can use alternative this library https://github.com/santomegonzalo/react-native-floating-action . It is updated for depraceted lifecycle warning.

Muratoter avatar Dec 18 '19 12:12 Muratoter

Should be taken care of in #333

jschloer avatar Jan 13 '20 16:01 jschloer

Hello, does anynone know if there is a chance to get a release soon for this issue ? This component fits my need but the warning is really annoying. Thanks.

bouchezb avatar Jan 16 '20 11:01 bouchezb

+1

kirame09 avatar Feb 09 '20 09:02 kirame09

Hey Guys, i know this solution is temporary but if you change your code with below code you can't see warning.

into node_modules/react-native-action-button/ActionButton.js

componentWillReceiveProps(nextProps) { .... }

to

UNSAFE_componentWillReceiveProps(nextProps) { .... }

Thank you. :+1:

chetanbhadarka avatar Feb 10 '20 10:02 chetanbhadarka

Any update here on the release?

tusharvikky avatar May 03 '20 12:05 tusharvikky

Apparently this issue is fixed in the latest version but not updated in npm. Use this to get the latest version npm install https://github.com/mastermoo/react-native-action-button

wniroshan avatar May 05 '20 15:05 wniroshan

I followed @wniroshan's recommendation:

npm install https://github.com/mastermoo/react-native-action-button

Then I applied the fix for add explicitly - useNativeDriver: false, then I used patch-package to keep everything versioned.

gregfenton avatar Jun 19 '20 00:06 gregfenton

This is still an issue. Is this library not maintained?

naishe avatar Jul 12 '20 11:07 naishe

seems abandoned...

Zrnik avatar Aug 02 '20 19:08 Zrnik

@gregfenton - this is a great tip to solve this issue. Thanks! Nice to have patch-package in the toolbelt =]

rdamborsky avatar Sep 07 '20 17:09 rdamborsky