Import SVG files in your React Native project the same way that you would in a Web application.
Expo SDK
v50.react-native
v0.73.0.@svgr/core
, @svgr/plugin-svgo
, and @svgr/plugin-jsx
to v8.1.0.@svgr/core
dependency to v8.0.0.@svgr/plugin-svgo
dependency to v8.0.1.@svgr/plugin-jsx
dependency (required by SVGR).react-native
versions older than 0.59react-native-svg
versions older than 12semver
dependency.@svgr/core
dependency to v6.1.2.@svgr/plugin-svgo
dependency to v6.1.2.viewBox
attribute from SVG images, which caused the default size of the image not be applied correctly.@svgr/core
dependency to v4.3.3.