software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
MIT License
7.5k stars 1.13k forks source link

SvgUri TypeError: (0 , _react.useState) is not a function #1226

Closed Ahmed-Imam closed 4 years ago

Ahmed-Imam commented 4 years ago

The react-native-svg is working fine with

"react": "16.6.1",
"react-native": "^0.59.0",
"react-native-svg": "^9.13.6",

except when I try using the SvgUri

    <SvgUri
       width={20}
       height={30}
       uri="http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg"/>
Screen Shot 2019-12-28 at 4 59 33 AM
msand commented 4 years ago

Can you try with SvgFromUri instead of SvgUri ?

Ahmed-Imam commented 4 years ago

Can you try with SvgFromUri instead of SvgUri ?

I confirm, it is working as expected with SvgFromUri.