We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is how .png files are used with React Native.
.png
React.createElement(React.Image, { source: require("image!my-icon") })
Is there a similar way for .svg files?
.svg
Is it possible to use .svg with Images.xcassets like it's recommended for .png files?
Images.xcassets
The text was updated successfully, but these errors were encountered:
<Svg source={{uri: 'image!my-icon'}} /> should work, but I haven't tried yet.
<Svg source={{uri: 'image!my-icon'}} />
I've actually tried after adding a height and a width, and all I can get is an empty square with red borders. A little help would be nice :-)
Sorry, something went wrong.
No branches or pull requests
This is how
.png
files are used with React Native.Is there a similar way for
.svg
files?Is it possible to use
.svg
withImages.xcassets
like it's recommended for.png
files?The text was updated successfully, but these errors were encountered: