vault-development / react-native-svg-uri

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

Change SVG properties with the style #25

Closed SandroMachado closed 7 years ago

SandroMachado commented 7 years ago

Is it possible to change/override/add properties to the SVG using the style (or other) property? Something like <SvgUri style={{ fill="#123456"...?

For instance, I have an SVG with a path and I want to change fill colour to my own colour in the JSX.

adrienbataille commented 7 years ago

@SandroMachado for the fill property, this PR #11 is already pending. I'm waiting for this option too!

SandroMachado commented 7 years ago

👍 same here!

matc4 commented 7 years ago

Already solved in the PR of @henrikra. Use the fill prop directly.

dguillamot commented 7 years ago

@matc4 Hi, is it possible to npm publish the version with the fill prop? Thanks!