-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
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
Vector Drawable support #16651
Comments
Image doesn't support vector drawables so I think this is a feature request rather than a bug. |
Oh? It doesn't even support it? I would assume it did. 😕 |
If you Google around there are some modules that add vector drawable support. Can't speak to their quality/reliability though. |
That's the thing, I don't want something that could break easily, I trust primitives more than 3rd party implementations. |
Another thing is with vector drawables, they work just like normal bitmap drawables that you can require in. If the image component is based on ImageView, then it should be able to have native vector drawable support too. I could be wrong though. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13
Node: 8.9.0
Yarn: 1.2.1
npm: 5.5.1
Watchman: Not Found
Xcode: Not Found
Android Studio: 3.0 AI-171.4408382
Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: 0.49.5 => 0.49.5
Steps to Reproduce
uri
methodExpected Behavior
I expected the vector file to load fine and populate inside the Image
Actual Behavior
The vector drawable was not visible at all. I do not think it even loaded into there.
Reproducible Demo
<Image source={{ uri: 'ic_arrow' }} style={{height: 24, width: 24}}/>
The text was updated successfully, but these errors were encountered: