react-native-blasted-image
react-native-blasted-image copied to clipboard
Preload is never resolved when an empty array is passed in.
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.
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;
}
Unfortunately i messed up when adding the pull requests but this is added in the latest release.
Best regards 🚀