maximalism2 / msvgc

Make React components from your plain SVG files
67 stars 14 forks source link

Add svg style support. #6

Closed TheTekton closed 7 years ago

TheTekton commented 7 years ago

Haven't written many parsers, so please excuse any naivety here. This PR uses the css parser package to set style props. When --reactNative is true, props based on react-native-svg's props.js are used to whitelist style props. Limited testing performed with a fairly complex icon set with colors in react-native.

TheTekton commented 7 years ago

Thought about building a StyleSheet for react-native, if it can work with react-native-svg. Haven't worked with svg on web much yet, but looks like