-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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: Dialog.Loading: Support for defaultProps will be removed from function components in a future major release. #3907
Comments
Also having this issue with |
Have the same warning |
Same here, having the same issue with |
Same problem here with |
Same issue in "Use JavaScript default parameters instead. %s TextElement" |
Yeah, we are also having the warning with the component, the only thing I've seen as a workaround / temp fix for this has been people suppressing the warn but I don't think that is the correct approach. I think likely may require an underlying code change for the components in this library and waiting until that happens 😢 |
Having the same issue. Is there an update on where this might be fixed? |
Is there an existing issue for this?
Explain what you did
I have used
import {Dialog} from '@rneui/themed';
and Used in component
<Dialog.Loading loadingProps={mainStyle.v2SbSixthTxtColor} />
In react native verion 0.74.1
Its throwing an warning
ERROR Warning: Dialog.Loading: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in Dialog.Loading
in Themed.DialogLoading
Expected behavior
It should not throw that warning, remvoe defaultProps as its not deprecated and will be removed in next react native version
Describe the bug
I have used
import {Dialog} from '@rneui/themed';
and Used in component
<Dialog.Loading loadingProps={mainStyle.v2SbSixthTxtColor} />
In react native verion 0.74.1
Its throwing an warning
ERROR Warning: Dialog.Loading: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
in Dialog.Loading
in Themed.DialogLoading
Steps To Reproduce
Screenshots
Your Environment
`npx @rneui/envinfo`
No related dependency found
Local Dependencies:
The text was updated successfully, but these errors were encountered: