react-native-blasted-image icon indicating copy to clipboard operation
react-native-blasted-image copied to clipboard

Preload is never resolved when an empty array is passed in.

Open joe-yeomans opened this issue 2 years ago • 1 comments

When an empty array is passed into the preload() function, the promise is never resolved. Changed the code so that is checks for an empty array.

Also might be a good idea to add a Prettier file into the project so the styling is consistent.

joe-yeomans avatar Jan 03 '24 16:01 joe-yeomans

Hi,

I'm not sure, but shouldn't it be input instead of loadImage? As loadImage is a function.

if (input.length === 0) {
   resolve();
   return;
}

Yann-prak avatar Mar 18 '24 11:03 Yann-prak

Unfortunately i messed up when adding the pull requests but this is added in the latest release.

Best regards 🚀

xerdnu avatar Aug 14 '24 16:08 xerdnu