Description
react-native-svg is an open-source library from Software Mansion that adds SVG drawing support to React Native apps. It renders SVG shapes and elements such as rect, circle, line, polyline, polygon and groups, and it supports most of their properties. You can convert SVG code you already have into React Native components with little rework. The library runs on iOS, Android, macOS and Windows, and it includes a compatibility layer so the same components work in React Native Web and plain React web projects. Installation differs by setup: with Expo the native code is already included in the Expo client app, so you only install the JavaScript package, while a React Native CLI project installs the package from npm or yarn and then links the native code. The README includes a table that matches each release of react-native-svg to the React Native versions it supports, and it lists separate support for the Fabric rendering system from version 13.0.0. For Windows, the project uses react-native-windows. Usage is documented in USAGE.md, and the README lists known issues and a troubleshooting guide for unexpected behavior.…
Highlights
- Renders most SVG elements such as rect, circle, line, polyline, polygon and groups
- Converts existing SVG code into React Native components
- Runs on iOS, Android, macOS and Windows, plus React Native Web
- Works with Expo or the React Native CLI
- Supports Fabric from version 13.0.0 with a version compatibility table
Ratings & Reviews
No ratings yet
Be the first to rate react-native-svg.
People also visit
react-native-svg FAQ
What does react-native-svg do?
It lets React Native apps draw SVG graphics, so icons and vector artwork can be used in a mobile app as components.
How do I install it with Expo?
Install the JavaScript package with the command shown in the Expo section of the README. The Expo client app already includes the native code.
How do I install it in a React Native CLI project?
Install the library from npm or yarn, then link the native code as the README describes.
Which React Native versions are supported?
The README has a table that matches each react-native-svg release to a React Native range, and a separate table for Fabric support from version 13.0.0.
Does it work on the web?
The library includes a compatibility layer for React Native Web and plain React web projects.
Where can I report a problem?
Check the latest version first, then open an issue with your App.js file, the platforms you tested and the output of the command the README lists.
What are the best react-native-svg alternatives?
Popular alternatives to react-native-svg include @amazon-devices/react-native-svg, react-native-vector-icons and react-native-skia. See all react-native-svg alternatives


















