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)
- SvgFromUri crashes on Android when color is an empty string HOT 2
- RNSVGImageComponentDescriptor compile r HOT 13
- SvgUri/SvgFromXml components don't un-escape special symbols HOT 1
- SVG rendered on 15.3 but broken on 15.4+ HOT 3
- react-native-svg crashing in release HOT 2
- Possible Breaking Change on Web in 15.5.0 HOT 11
- [15.6.0] Crashes on Android with scale = 0. HOT 2
- SVG not fully rendered on iOS with latest versions HOT 11
- SvgViewManager.java:396: error: method does not override or implement a method from a supertype HOT 6
- Opacity of Last Element Affects Entire SVG After Upgrading to v15.6.0 HOT 2
- Pattern fill not working with latest react-native HOT 3
- SVG Path not reacting to react-native-reanimated sharedValue changes when setting x and y props HOT 4
- error: cannot find symbol HOT 4
- Crash on android after adding style transform HOT 8
- IOS is showing black screen HOT 3
- SVG Component Showing Blank After Updating to Version 15.4.0 HOT 1
- [15.7.0] missing types HOT 5
- [iOS] elements with `fill` set to `currentColor` fades to dark after opening share menu
- replace error on xml source after upgrading to React Native 0.75 HOT 9
- Float to Double conversion bug for Radius values on Android HOT 3
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.