vault-development / react-native-svg-uri

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

Svg fill coloring on path. #133

Open kimbuca opened 6 years ago

kimbuca commented 6 years ago

Fill property wasn't working for me as it said on the readme. From an issue here I found out fill property was needed on the path component. It worked on my project, I hope it get's approved :)

vemarav commented 5 years ago

add fill attr in your svg as below

  <svg>
    <path fill="" d="..." />
  </svg>
acelyavul commented 3 months ago

I added fill attr to path, it throws error

ERROR SVG [TypeError: Cannot read property 'childNodes' of undefined] at SvgUri (http://10.0.2.2:8081/app/lib/SvgUri/index.bundle//&platform=android&lazy=true&app=com.servisplan&modulesOnly=true&dev=true&minify=false&runModule=true&shallow=true:56:36)