-
Notifications
You must be signed in to change notification settings - Fork 389
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
WARN: defaultProps
will be removed from memo components
#748
Comments
Hello, have you been able to find a solution for this? I am also getting warning in my project. |
The solution is to refactor or rewrite the component, or use patch-package to comment it out. Unfortunately not much will happen without @mmazzarolo, happy to create a PR if you would merge it @mmazzarolo? Last commit was over 8 months ago so I won't hold my breath for a quick turnaround to this one. I might fork and fix and let you know. |
Environment
Platforms
Only tested Android
Versions
Description
Updating to the latest expo (v51.0.4) updated react-native to 0.74.1 and now opening my app using this package throws the following warning:
Tracked it down to my component
MemoTimeInput
which renders this package like so:Looking at source code I see the following:
react-native-modal-datetime-picker/src/DateTimePickerModal.android.js
Line 75 in 56cc719
Commenting those defaultProps out fixes the issue.
The text was updated successfully, but these errors were encountered: