assetBundlePatterns error on Android when using sufix like image@2x.png


#1

When I use image suffixes @2x and @3x, following react-native documentation, the assets created by assetBundlePatterns are invalid images. I’m using SDK 25.

Assets in the repo - I’ve confirmed they are all 8-bit colormap, non-interlaced png images.

Assets inside the .apk - if I try opening them, they’re invalid png files.

I made another build, removing the images with suffixes. Then I have valid images:

I’m checking and it seems a similar problem happens in the ios build. I take that assetBundlePatterns doesn’t support suffixes?


Fix bundling assets for images with multiple sizes
closed #2

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.