react-native-credit-card-input icon indicating copy to clipboard operation
react-native-credit-card-input copied to clipboard

Warning: componentWillReceiveProps has been renamed

Open aymkin opened this issue 5 years ago • 7 comments

Please update the following components: CCInput, CreditCardInput, FlipCard

aymkin avatar Feb 17 '20 10:02 aymkin

When will this be update please?

godguide1 avatar Jul 04 '20 17:07 godguide1

When will this be update please? ²

marquinmpfs avatar Jul 10 '20 03:07 marquinmpfs

You can hide those yellow box waring's by adding below line in App.js or in filename.js file where your are using this library,

e.g: import { CreditCardInput } from "react-native-credit-card-input"; console.disableYellowBox = true; For temporary basis/till the admin updates the changes.

mayursarode4 avatar Jul 20 '20 05:07 mayursarode4

+1 for getting this updated - thanks!

retronoodle avatar Aug 05 '20 16:08 retronoodle

You can open node_modules/react-native-credit-card-input/src/CCInput.js and replace componentWillReceiveProps with componentDidUpdate.

The same with /CreditCardInput.js

Edit: That is not enough :(. After changing that you have some issues with the focus I removed componentDidMount, componentWillReceiveProps and _focus temporary, that is fine for me.

nawedfarooque avatar Aug 17 '20 18:08 nawedfarooque

https://github.com/sbycrosz/react-native-credit-card-input/issues/185#issuecomment-753360922

designervoid avatar Jan 01 '21 18:01 designervoid

@mayursarode4 i think disable warnings is bad practice. in your example you are disabling global yellow box, nope?

designervoid avatar Jan 01 '21 18:01 designervoid