mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fa0e6f8051
Summary: Adds support for the `onProgress` event on `Image`, for Android. Since Fresco does not provide a progress listener on `ControllerListener`, this uses a forwarding progress indicator `Drawable` to pass along values from `onLevelChange`. Caveat: The ratio between `loaded` and `total` can be used, but `total` is currently always 10000. It seems that Fresco does not currently expose the content length from the network response headers. Changelog: [Android][Added] - Adds support for the `onProgress` event on `Image` Reviewed By: mdvacca Differential Revision: D22029915 fbshipit-source-id: 66174b55ed01e1a059c080e2b14415e7d268bc5c