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

require is not working

Open neomib opened this issue 8 years ago • 6 comments

Hi I have this code: <SVGImage source={require('../../assets/img/brand.svg')} /> . But I'm getting an error: image Any ideas?

neomib avatar Sep 18 '17 06:09 neomib

see readme, it doesn't work with local SVGs

chitezh avatar Sep 18 '17 11:09 chitezh

I saw here : https://js.coach/react-native/react-native-svg-image it says : source - Same kind of source prop that <Image /> component has.

neomib avatar Sep 19 '17 06:09 neomib

Will the require be supported soon?

AdrianPal avatar Oct 24 '17 14:10 AdrianPal

Yeah, I'll work on that soon...

chitezh avatar Oct 24 '17 14:10 chitezh

Any news?

eladcandroid avatar Dec 10 '17 08:12 eladcandroid

@chitezh please outline the steps that are needed to support the require - maybe someone else will take up the work?

wh1t3cAt1k avatar Jul 30 '18 07:07 wh1t3cAt1k