target / react-native-svg-parser

Parses SVG files and converts to 'react-native-svg' format objects. NOTE: This project has been archived.
MIT License
42 stars 16 forks source link

Use SVG height and width to calculate ViewBox #14

Open fniwes opened 6 years ago

fniwes commented 6 years ago

Some SVG seems to have a height and width defined in the SVG tag. This pull request try to use those dimensions when calculating a missing ViewBox

A example of such svg is: https://haveibeenpwned.com/Content/Images/PwnedLogos/Disqus.svg