Skip to content
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

Merged
merged 17 commits into from
Jun 14, 2017
Merged

Conversation

TheTekton
Copy link
Contributor

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 TheTekton mentioned this pull request Jun 11, 2017
3 tasks
@TheTekton
Copy link
Contributor Author

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.

@TheTekton TheTekton changed the title Add svg style parsing. Add svg style support. Jun 12, 2017
@TheTekton
Copy link
Contributor Author

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.

Copy link
Owner

@maximalism2 maximalism2 left a 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

@TheTekton
Copy link
Contributor Author

Master merged.

@maximalism2
Copy link
Owner

@TheTekton After merging previous PR here is some conflict, so could you please merge master into your branch again?

@TheTekton
Copy link
Contributor Author

@necinc master is now merged.

@maximalism2 maximalism2 merged commit 4d84351 into maximalism2:master Jun 14, 2017
@TheTekton TheTekton deleted the style-parse branch July 16, 2017 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants