Open headwinds opened 7 years ago
Could you please give an example about how did you convert the logo.svg into a Logo.js in Terminal? I'am having some difficult to make it work. It giver me this message.
Warn / Unknown option: AGIL.svg
msvgc --folder [pathToFiles], path to directory with .svg files or concrete file
@lucasbkatayama I feel your pain - I wish I could help you - unfortunately I don't have the complete solution anymore
I was able to use msvgc to convert a logo.svg into a Logo.js which was cool to see happen.
When I went to use the Logo.js in my react native project using Expo, it complained about attempting to use an [Object, Object] so I played around with the Logo.js file and added the React.Component setup as well as imported react-native-svg and it worked!
So perhaps msvgc could have an option (a flag like -c) to also produce this type of Component (including react-native-svg) as well as the function approach
This is the tweak: