react-native-web-image-loader icon indicating copy to clipboard operation
react-native-web-image-loader copied to clipboard

Doesn't seem to work with inlined images

Open fo-fo opened this issue 3 years ago • 0 comments

It seems that this loader has trouble if some earlier loader (like url-loader) has turned the image into a data URL (data:...). In that case it writes an invalid "image asset" with contents module.exports = "data:...". At least that seems to be the case.

Can be reproduced by using react-navigation with Expo. When this loader is added to the webpack config, react-navigation's stack navigator's back button disappears because of the invalid image asset. Works well with many other images in the setup, though.

fo-fo avatar Sep 03 '22 17:09 fo-fo