Image component onLoadingStart/onLoadingFinish/onLoadingError props
Not sure if this is on your radar, but I'm playing around with RCTNetworkImageView and its manager to see if I can expose them. It's mostly so I can fade in the image (vs. simply appearing) when onLoadingFinish is called, but they could be useful for other use cases :)
We have a task internally to expose those :)
Yes, please build, this would be great!
The API could be a simple prop for fadeInDuration that defaults to 0 (shows instantly), and ideally it could also call an onLoad event on the component in js for custom logic.
On Feb 25, 2015, at 12:47 AM, Christopher Chedeau [email protected] wrote:
We have a task internally to expose those :)
— Reply to this email directly or view it on GitHub.
Just took a stab at it since I'm working on a prototype that needed the feature.
Closing issue as there is now a corresponding pull request :smile: (#604)