-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
defaultProps issue with React version 18.3 #2273
Comments
Hi @Manouli, |
@jakex7 https://github.com/Manouli/react-native-svg-test I have created a repo for you here. Also here is a screenshot showing the warning in the console and in browser |
After a closer inspection, there is no |
@jakex7 thank you! 🫡 |
I'm gettingn the same issue, and inside of src/elements, it looks like defaultProps is used extensively. I do not use |
Bug
I am using react-native-web inside a next js project with the react-native-svg package and the babel-plugin-inline-react-svg. It seems to be working fine. The only problem is that I am getting a warning from all my icons about defaultProps.
Example warning:
We don't declare any defaultProps ourselves so it must be coming from the package.
I tried replacing this setup with the svgr/webpack implementation and that would not throw any errors. Is there something that I am missing?
Library version: ^12.1.1,
"babel-plugin-inline-react-svg": "2.0.1",
The text was updated successfully, but these errors were encountered: