vault-development / react-native-svg-uri

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

Error- Trying to add unknown view #127

Open adrispo opened 6 years ago

adrispo commented 6 years ago

Hi! I try tu use one of my svg images, but i get this error:

error_svg

Probably is because I had in the svg file something like this:

<style>
      .cls-1 {
        fill: #323f4c;
      }

      .cls-1, .cls-4 {
        fill-rule: evenodd;
      }

      .cls-2 {
        fill: none;
        stroke: #ffd741;
        stroke-miterlimit: 22.926;
        stroke-width: 0.216px;
      }

      .cls-3 {
        fill: #fb0;
      }

      .cls-4, .cls-5 {
        fill: #fff;
      }

      .cls-6 {
        fill: #010005;
      }
    </style>

If I remove it I have no errors but the image is not showing

I try to export the image in differents programs, but all of them export similar svg files with style target.

fniwes commented 5 years ago

Could you share the whole svg?