-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Warning: Avatar: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #2498
Comments
temporary solution
|
Same error here after upgrading to expo sdk 51 |
Also getting this one in expo sdk 51. @cool3rain fix works when put in the root _layout.tsx. Just keeping a log going of all the suppressed warnings |
react-native-gifted-chat/src/Avatar.tsx Lines 147 to 160 in ba06287
The problem lies here, but I haven't seen this library for several months, so I suggest that it is better to fork it and maintain it locally. |
Temporary solution
|
Issue Description
Warning: Avatar: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
Steps to Reproduce / Code Snippets
Expected Results
No warning
Additional Information
Happy to help implementing the fix if you agree and point me in the right direction.
The text was updated successfully, but these errors were encountered: