vault-development / react-native-svg-uri

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

App crash when using strock attribute #174

Open smnodame opened 5 years ago

smnodame commented 5 years ago

I use React native with Expo

"react-native-svg": "^5.3.0", "react-native-svg-uri": "^1.2.3" "expo": "^27.0.0" "react-native": "https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz"


<!-- Generator: Adobe Illustrator 16.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="500px"
     height="500px" viewBox="0 0 500 500" enable-background="new 0 0 500 500" xml:space="preserve">
  <g id="Layer_2">
    <polyline fill="#28AF7E" stroke="#38AC7F" stroke-width="2" stroke-miterlimit="10" points="41.539,310.452 10,304.181
                                                                                              37.079,351.139 13.504,395.523 80.87,397.116 74.83,382.092     "/>
    <polyline fill="#28AF7E" stroke="#38AC7F" stroke-width="2" stroke-miterlimit="10" points="458.46,310.452 490,304.181
                                                                                              462.919,351.139 486.496,395.523 419.129,397.116 425.169,382.092   "/>
    <path fill="#35C174" stroke="#4CB680" stroke-width="2" stroke-miterlimit="10" d="M27.522,294.742c0,0-0.876,40.786,32.853,95.416
                                                                                     h377.152c0,0,27.158-35.01,36.795-95.416H27.522z"/>
  </g>
</svg>````
smnodame commented 5 years ago

Solved it after change react-native-svg to "6.2.2"