Warning: componentWillReceiveProps has been renamed
aymkin opened this issue · 7 comments
Please update the following components: CCInput, CreditCardInput, FlipCard
When will this be update please?
When will this be update please? ²
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.
+1 for getting this updated - thanks!
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.
@mayursarode4 i think disable warnings is bad practice. in your example you are disabling global yellow box, nope?