SVG to React Native With ViewBox

Convert to RN while keeping a correct viewBox

Attrs to RN props? Attrs to RN propsCamelCase attrs? CamelCase attrs

FAQ

Quick answers

How do I convert SVG to React Native without losing viewBox?
Paste SVG and click Convert with viewBox so framing stays intact.
Why is viewBox important in RN SVG?
It preserves aspect ratio when width/height props change.
Need size props after keeping viewBox?
Continue with SVG Icon With Size Props React Native.
Is viewBox-preserving convert free?
Yes. Free browser tool.
Attrs to RN props → CamelCase attrs → RN currentColor → Fill to color prop →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina