react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Image component onLoadingStart/onLoadingFinish/onLoadingError props

Open jordanna opened this issue 11 years ago • 4 comments

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 :)

jordanna avatar Feb 25 '15 08:02 jordanna

We have a task internally to expose those :)

vjeux avatar Feb 25 '15 08:02 vjeux

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.

sahrens avatar Feb 25 '15 16:02 sahrens

Just took a stab at it since I'm working on a prototype that needed the feature.

jordanna avatar Apr 02 '15 00:04 jordanna

Closing issue as there is now a corresponding pull request :smile: (#604)

brentvatne avatar Apr 15 '15 06:04 brentvatne