react-native-svg-transformer icon indicating copy to clipboard operation
react-native-svg-transformer copied to clipboard

SVG not showing

Open devWaleed opened this issue 3 years ago • 1 comments

Hey, I have the following SVG images and they are not showing in my app.

Box: https://www.flaticon.com/svg/vstatic/svg/3037/3037049.svg?token=exp=1619215582~hmac=eccfbe11d17ccf10dbf5b636ff824bba

Trending: https://www.flaticon.com/svg/vstatic/svg/1946/1946432.svg?token=exp=1619215874~hmac=6468e87973f38bc103e95e953a783906

But this one is showing

Avatar: https://www.flaticon.com/svg/vstatic/svg/145/145867.svg?token=exp=1619216019~hmac=12d083b2bf1b84593c49f6c176948efb

Can someone explain what is the reason why some SVGs are not showing but some are.

devWaleed avatar Apr 23 '21 21:04 devWaleed

Same here!

I got a quick fix in my case the svg image was not showing on ios but this is due to I was giving dimensions this way

<StickerDoubt width={100} height={100} />

the right way is

<StickerDoubt width="100" height="100" />

Deryan98 avatar Sep 12 '22 20:09 Deryan98