react-native-remote-svg
react-native-remote-svg copied to clipboard
Fix for resizing SVGs which don't have viewBox
Potential fix for issue #3
As I understood, the SVGs that do not have viewBox cause the image clipping problem. If we add a viewBox that is the same height and width as the SVG, it is possible to resize it with styles. (Assumption: No viewBox must mean the <svg> tag should be having a height and width)
Tested with:
- API: https://restcountries.eu SVG flags
- The SVG in the aforementioned issue.
Can you please review the fix and see if it's worth anything?