svg

Render SVGs in React Native using react-native-svg from URIs, XML, or files.

265|12|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/software-mansion-labs/skills --skill svg-software-mansion-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svg
Source: https://github.com/software-mansion-labs/skills/tree/main/skills/react-native-best-practices/references/svg
Command: npx skills add https://github.com/software-mansion-labs/skills --skill svg-software-mansion-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This set of patterns provides production-grade guidance for rendering SVGs in React Native apps using react-native-svg, helping teams achieve correct loading, performance, and interaction.

Core Features & Use Cases

  • Loading and rendering SVGs from URIs, XML strings, or local files with best practices.
  • Handling touch interactions, filters, and performance considerations to ensure smooth UIs.
  • Real-world use cases include icons, charts, illustrations, and animated/vector content across iOS and Android.

Quick Start

Install react-native-svg and start applying the patterns in this guide to begin integrating scalable vector graphics in your app.

Frequently Asked Questions about svg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render SVGs in React Native from XML strings or URIs?

To render SVGs in React Native, apply production-ready patterns with react-native-svg to load vector graphics from URIs, XML strings, or local files. This ensures reliable rendering of icons and charts across iOS and Android.

What is the best way to handle SVG touch events in React Native?

Handling SVG touch interactions in React Native requires applying specific patterns for touch events using react-native-svg. This approach ensures smooth UI performance while managing user interactions with vector graphics components.

Does react-native-svg support rendering vector graphics on both iOS and Android?

react-native-svg supports rendering vector graphics on both iOS and Android platforms. It handles cross-platform rendering for icons, charts, and illustrations, ensuring consistent UI results across mobile environments.

How do I optimize SVG rendering performance for mobile applications?

Optimizing SVG rendering performance in mobile applications involves applying specific patterns for react-native-svg. These patterns address performance considerations and known issues to maintain smooth UIs when rendering complex vector graphics.

What are the limitations of using react-native-svg for mobile development?

Limitations of using react-native-svg include known issues with filters and performance constraints when rendering complex vector graphics. Understanding these limitations helps ensure reliable results and smooth UIs across iOS and Android.