garganurag893 / react-native-phone-number-input

React Native component for phone number.
MIT License
376 stars 219 forks source link

Default props error on react native cli 0.74 #167

Open alihilalov opened 4 months ago

alihilalov commented 4 months ago

ERROR Warning: Main: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

jefferdo commented 4 months ago

Got the same issue

coucoseth commented 2 months ago

any fix for this?

Dugariya commented 1 month ago

any fix for this?

calebfaruki commented 3 weeks ago

Duplicate of https://github.com/garganurag893/react-native-phone-number-input/issues/163

Although the suggested fix here isn't really well documented for some reason? It's just a git patch file you have to interpret, fork, and then npm install from your own public github fork:

npm install --save https://github.com/you/forkreponame/tarball/master