SVG Icon With Size Props React Native

Expose width/height size props on an RN SVG icon

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

FAQ

Quick answers

How do I give a React Native SVG icon size props?
Paste the icon and click Add size props to prepare width/height prop wiring.
Should the icon keep a viewBox when sizing via props?
Yes — viewBox keeps aspect while props control rendered size.
Want a responsive icon that scales with layout?
Open Responsive SVG Icon React Native Component.
Is size-props prep 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