I’ve been trying to put a svg in my react-native application for a long time, I don’t know what I can do anymore

  Kiến thức lập trình

when i put the the “RightIcon” like that and my application crash, well, im trying to do a button using TouchableOpacity

return ( <TouchableOpacity {...props} onPress={onPress} style = {buttonStyle}> <View> <RightIcon width={20} height={20} fill={'#000000'} style={{ marginRight: 10 }} /> <Text style = {textStyle} >{title}</Text> </View> </TouchableOpacity> );

ive used the svgr library and the the svg tranformer, ive all ready checked the imports nothing wrong!!!! idk anymore

New contributor

Leonardo Moreira Guidorizzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT