-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image component onLoadingStart/onLoadingFinish/onLoadingError props #98
Comments
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.
|
…age component, which are intended to provide loading states for network image sources. Updated the Image component example in the UIExplorer app to demonstrate how they can be used to fade in a network image (using the Animation API). Fixes facebook#98.
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 😄 (#604) |
Add comma in the Doc of Todo List
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) whenonLoadingFinish
is called, but they could be useful for other use cases :)The text was updated successfully, but these errors were encountered: