Description
react-native-svg adds SVG support to React Native apps on iOS, Android, macOS and Windows, and provides a compatibility layer for React Native Web and plain React web projects. It supports most SVG elements and properties, including rect, circle, line, polyline, polygon and g, so SVG code can be converted into react-native-svg components with little change. The README covers two ways to install it. With Expo, the native code is already in the Expo client app, so you only install the JavaScript package. With the React Native CLI, you install the library from npm or yarn and then link the native code. A compatibility table maps each release to the React Native versions it supports. Fabric, React Native's newer rendering system, is supported from version 13.0.0 and needs React Native 0.69.0 or later. The troubleshooting section asks for a clean reproduction project when behaviour is unexpected.…
Highlights
- Most SVG elements and properties
- Works on iOS, Android, macOS and Windows
- Compatibility layer for React Native Web and React
- Installs with Expo or the React Native CLI
- Fabric support from version 13.0.0
Ratings & Reviews
No ratings yet
Be the first to rate @amazon-devices/react-native-svg.
People also visit
@amazon-devices/react-native-svg FAQ
Does react-native-svg work with Expo?
Yes. The Expo client app already has the native code installed, so you install the JavaScript package and follow the Expo docs for usage.
Which React Native versions are supported?
The README has a table that maps each react-native-svg release to its React Native versions. The most recent releases need React Native 0.80.0 or later.
Can I convert existing SVG files?
The README says it is easy to convert SVG code to react-native-svg, since the library supports most SVG elements and their properties.
What about Fabric?
Fabric, React Native's new rendering system, is supported from react-native-svg 13.0.0 and needs React Native 0.69.0 or later.
Where do I report a problem?
Open an issue on the GitHub repository. The troubleshooting section asks you to reproduce the problem in a clean project with the latest versions.
What are the best @amazon-devices/react-native-svg alternatives?
Popular alternatives to @amazon-devices/react-native-svg include react-native-svg, react-native-vector-icons and react-native-skia. See all @amazon-devices/react-native-svg alternatives

















