aeirola / react-native-svg-asset-plugin

Asset plugin for importing SVG images in React Native
https://www.npmjs.com/package/react-native-svg-asset-plugin
MIT License
68 stars 9 forks source link

is it possible to use with react-native-fastimage? #35

Closed ssilverr closed 4 years ago

ssilverr commented 4 years ago

React native fastimage is pretty much superior to the built in image component.

aeirola commented 4 years ago

This plugin is for converting local images from SVG to PNG during compile time before they are packaged into the application package. FastImage is a library to improve the performance of images fetched over the network. Thus I don't really how the projects would be used together.

If you want to convert SVG images to PNGs on the server side as they are fetched by the application, there are probably multiple different libraries available for that.

ssilverr commented 4 years ago

FastImage is can be used to change tintcolor, so you can use .png assests as icons, no need for an Icon library, or several versions of the same .png. So it's not a strictly for fetching images.

aeirola commented 4 years ago

Oh, okay. Then I guess it should work just as well with the FastImage component as well. Although the React Native Image component does support the tintColor style prop as well, so not really sure what the benefit of using FastImage would be.

aeirola commented 4 years ago

Hopefully you got everything working well using the Image component of choice. I'll close the issue, but feel free to create a new one in case you encounter any issues.