This uses SDAnimatedImageView instead of FLAnimatedImageView for better animation support.
BREAKING CHANGE: Upgrade SDWebImage, may affect some projects and CocoaPods users.
Fix the bug of `cacheOnly` behavior
fix#447
It's recommended to never retain the strong reference to self into blocks.
Blocks maintain strong references to any captured objects, including self, which means that it’s easy to end up with a strong reference cycle.
[skip release]
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.
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.