mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-24 12:18:12 +00:00
Setting properties from JS to native components does not guarantee any order (as far as I know). Because of this, `setSource` can get called and complete before `setOnFastImageLoad` and `setOnFastImageLoadEnd`, which results in the callbacks never firing. This change implements a simple check for these callback properties getting set after the image has loaded, and fires them at that time.