Implement <svg> support#272
Conversation
|
Let me know what you think @necolas There are still some Also I am willing to add some tests and probably some examples in the Expo examples app. |
There was a problem hiding this comment.
Thanks for sharing this quickly and early.
My initial thoughts are that the HTML and SVG interfaces are too intermingled in the code. Although html.svg seemed to make sense at first, I have doubts after looking through this patch and doing a bit more research.
The <svg> element is type SVGSVGElement. So writing <svg.svg> in RSD would be true to spec. And eventually there might be <html.html> as well.
If we were to put everything SVG (inc the <svg> element) under the svg export, it would help keep a clearer separation between HTML and SVG types and logic. DCE has a better chance of removing all the SVG code too.
So in general, having separate Svg functions and checks seems like the better way forward to me. And we can refactor/rename any code that needs to be shared as and where it's needed.
|
This PR is great timing! I just happened to do something similar in my app via a patch and was playing with it before sending a PR. Thanks moving so quickly on it. |
|
Is something causing any trouble that we could fix to move forward with this ? |
|
@efoken I just saw that you published https://github.com/efoken/react-strict-dom-svg @martinbooth do you think this could be merged into RSD repo ? |
452a092 to
52dd494
Compare
|
@MoOx @martinbooth I updated my PR, ist there anything we can do to get this merged? |
|
You might want to read from here #4 (comment) |
|
@MoOx I moved everything to a |
|
Sadly I am no decider here. poke @martinbooth or fb team |
#4