Update SVG width and height
See original GitHub issueSvg
elements don’t seem to update when width / height properties change. Is it possible to resize an Svg
element?
New to React/Native, so I might be missing something obvious.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
How to Scale SVG | CSS-Tricks
Any height or width you set for the SVG with CSS will override the height and width attributes on the <svg> . So...
Read more >Resizing SVG in html? - Stack Overflow
Open your .svg file with a text editor (it's just XML), and look for something like this at the top: <svg ... width="50px"...
Read more >How to resize a SVG image - Medium
1. Change width and height in XML format ... Open the SVG file with your text editor. It should show lines of code...
Read more >How to Resize SVG in HTML - W3docs
In this tutorial, we want to demonstrate how you can resize SVG image in HTML. For that, you can change the values of...
Read more >width - SVG: Scalable Vector Graphics - MDN Web Docs
The width attribute defines the horizontal length of an element in the user coordinate system. You can use this attribute with the following...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a PR fixing this: https://github.com/react-native-community/react-native-svg/pull/596
Seems fixed, closing.