peoplewareDo / nativescript-svg

Nativescript plugin - support for .SVG file format
Other
70 stars 55 forks source link

Styling SVG with css - Is it possible ? #4

Closed tonyawad88 closed 7 years ago

tonyawad88 commented 8 years ago

Hello,

Do you think there's any chance we can style the svg from css within nativescript ?

Thank you !

victorsosa commented 8 years ago

Yes, I do. I don't have any idea right now, of how to do it dynamically. Any PR are welcome too.

victorsosa commented 8 years ago

But you can style (static) it and try it render it. Check https://github.com/NativeScript/NativeScript/issues/603

tonyawad88 commented 8 years ago

True. I was able to style it statically. I noticed also the height and width must be specified on the svg otherwise it throws an error.

Anyhow thank you for this plugin. It definitely helps a lot.

victorsosa commented 8 years ago

Yea, the height and width are required. I glad you like XD, Thank you.

victorsosa commented 7 years ago

svg clip-path is another way to implement this too.