react-native-svg-asset-plugin icon indicating copy to clipboard operation
react-native-svg-asset-plugin copied to clipboard

unable to use pngs directly?

Open giugrilli opened this issue 4 years ago • 2 comments

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 avatar Jun 17 '20 13:06 giugrilli

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

giugrilli avatar Jun 17 '20 14:06 giugrilli

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.

aeirola avatar Jun 22 '20 07:06 aeirola