This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS: Ensure onLoad and onLoadEnd get called
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.
- Loading branch information