-
-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove defaultProps - it is causing errors #526
Comments
+1 |
I am so facing with the same problem. Please resolve issue. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1
|
Same problem. Please help! |
+1 |
3 similar comments
+1 |
+1 |
+1 |
react-native-country-picker-modal+2.0.0.patch As of now, I have manually removed defaultProps and created a patch using patch-package to suppress this warning. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
When using CountryPicker, there are lots of errors in the console regarding defaultProps:
Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
Steps to Reproduce / Code Snippets
Install the package in bare expo project
Import and use CountryPicker component
Expected Results
No errors in console
Additional Information
The text was updated successfully, but these errors were encountered: