-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add svg style support. #6
Conversation
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 <style> tags could be supported out of the box with the ReactDOM. Will try to experiment a bit more today, while I'm still thinking about this. |
…t-native-svg, etc.
…using --reactNative; useful for colored svg icons.
Quick test of web style tags didn't work out. Still likely something worth looking at, as well as using react-native StyleSheet, but don't really have a use case for either right now. I added a --color prop here which helps work with svg icons as buttons, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, pull the the new master into your branch
Master merged. |
@TheTekton After merging previous PR here is some conflict, so could you please merge master into your branch again? |
@necinc master is now merged. |
# Conflicts: # lib/react-native-svg/props.js
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.