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

unable to use pngs directly? #43

Open giugrilli opened 4 years ago

giugrilli commented 4 years ago

I am in the scenario where I have some svg images and some jpg/png images.

When using this plugin all the svg are converted and loaded correctly, but when trying to use the png it does not work and shows a blank image.

Is it supposed to be like this?

giugrilli commented 4 years ago

It actually happens only when using a release version, on debug everything works.

aeirola commented 4 years ago

Hmm, the use of the plugin should not affect the use of PNG source images. We use both SVG and PNG images in our projects, so should definitely be possible to get it to work.

Do the PNG images work in your case if you just remove the SVG asset plugin from metro config? If not, would you be able to make a repository which reproduces this issue? That would help me a lot in figuring out what is wrong and try to fix it.