Comments (4)
After a closer inspection, there is no defaultProps
in any of our files and the warning comes from babel-plugin-inline-react-svg
.
Here's the pull request introducing this feature: Use defaultProps instead of adding props to the svg #8
There's also a related PR where we can find a discussion about this topic. Provide option for spreading props rather than static assignment #86
from react-native-svg.
@jakex7 thank you! 🫡
from react-native-svg.
Hi @Manouli,
Thank you for reporting this issue. However, I was unable to reproduce it. Could you please provide a minimal reproducible repository?
from react-native-svg.
@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
from react-native-svg.
Related Issues (20)
- Failed parsing SvgCssUri for first time, after reopening app it appears
- Xlinkhref only work on web does not work on ios and android (the color did not get inherited ) HOT 2
- React native web + vitest issue - Cannot use import statement outside a module HOT 5
- fetchText method error : TypeError: Cannot read property 'prototype' of undefined when trying to call svg from uri HOT 4
- HTML entities contained in an XML string are not decoded by the SvgXml component
- Path not rendering correctly HOT 1
- How to center Text along a path?
- React Native SVG stroke-width bug on expo web.
- SVG image not import in React native HOT 2
- ForeignObject works with panResponder? HOT 1
- Why is `err` exported?
- stroke-width default value must be 1
- Error "ViewPropTypes" undefined in svg.js file
- Comments in SVG file results in "Text strings must be rendered within a <Text> component." HOT 1
- Svg is blur on react-native-windows
- [Android] SvgFromUri doesn't work RN 0.74, New Arch + bridgelessMode ON. Jest tests failed. Patch is provided HOT 6
- Build failed on react-native 0.74.0 & newArchEnabled HOT 1
- ERROR Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider, js engine: hermes
- Image gets tiled instead of centered.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-svg.