vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
849 stars 334 forks source link

Support classes #75

Closed BerndSchrooten closed 1 year ago

BerndSchrooten commented 7 years ago

This adds support for classes defined in a svg using the style tag: <style>.cls-1{stroke:#b2b4b9;stroke-linecap:round;stroke-miterlimit:10;stroke-width:1.5px;}.cls-2{fill:#f9bc35;}</style>

Attributes of these classes can also be overridden using the following syntax <SvgUri classes={{'cls-1': {stroke: 'blue'}}} ... /> This will override the stroke color of the class cls-1 other attributes remain untouched.

entropitor commented 6 years ago

@matc4 Has this any chance of merging?