Svg

by software-mansion-labse3f00cdb3494No license291 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 10 days ago

Software Mansion's best practices for SVG rendering in React Native apps using React Native SVG. Use when rendering vector graphics, icons, charts, illustrations, or any SVG content. Trigger on: 'react-native-svg', 'SVG', 'vector graphics', 'render icon', 'draw shape', 'chart', 'path', 'Svg component', 'SvgUri', 'SvgXml', 'SvgCss', 'FilterImage', 'SVG filter', or any request to display scalable vector content in a React Native app.

AI-generated overview

Guides SVG rendering in React Native apps using the react-native-svg library.

What it does
Provides Software Mansion's production patterns for rendering SVG content in React Native with react-native-svg. It covers installing the library, loading SVGs from URIs, XML strings, or files, applying filters, handling touch events, performance considerations, and known issues. It also helps decide between react-native-svg, expo-image, @expo/vector-icons, Skia, and Lottie.
When to use it
Use when rendering vector graphics, icons, charts, illustrations, or other SVG content in a React Native app. It is also useful when choosing among SVG and image rendering libraries for a React Native project.
Requirements
No scripts; instructions only. The agent may need network access to fetch the referenced react-native-svg usage documentation.

SVG

Software Mansion's production SVG patterns for React Native using React Native SVG.

For API details on specific components and props, webfetch https://github.com/software-mansion/react-native-svg/blob/main/USAGE.md

References

FileWhen to read
when-to-use.mdDeciding between react-native-svg, expo-image, @expo/vector-icons, Skia, or Lottie
svg.mdInstalling react-native-svg; loading SVGs from URIs, XML strings, or files; filters; touch events; performance considerations; known issues

Source and attribution

Source:software-mansion-labs/skillsinskills/react-native-best-practices/references/svgat commite3f00cd

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal