react-native-svg-image
react-native-svg-image copied to clipboard
require is not working
Hi I have this code:
<SVGImage source={require('../../assets/img/brand.svg')} /> .
But I'm getting an error:
Any ideas?
see readme, it doesn't work with local SVGs
I saw here : https://js.coach/react-native/react-native-svg-image it says :
source - Same kind of source prop that <Image /> component has.
Will the require be supported soon?
Yeah, I'll work on that soon...
Any news?
@chitezh please outline the steps that are needed to support the require - maybe someone else will take up the work?