xerdnu / react-native-blasted-image

A simple yet powerful image component for React Native, powered by Glide and SDWebImage.
MIT License
90 stars 10 forks source link

feat: support onLoad, onError and fallbackSource #3

Closed sepperousseau closed 10 months ago

sepperousseau commented 10 months ago

Hi @xerdnu ,

This is just a small PR. To support onLoad en onError callbacks. Might come in handy? Also I've added a fallback source. Cause now the error image was hardcoded require.

Let me know what you think 👍

xerdnu commented 10 months ago

Looks really good! I just made a minor adjustment to include the static asset as a last resort if both the primary and fallbackSource fails. Also made some updates to the documentation 😄