diff --git a/packages/react-native-web/src/exports/Image/index.js b/packages/react-native-web/src/exports/Image/index.js index 952f3f51..f166da6d 100644 --- a/packages/react-native-web/src/exports/Image/index.js +++ b/packages/react-native-web/src/exports/Image/index.js @@ -236,7 +236,7 @@ const Image = forwardRef((props, ref) => { function load(e) { updateState(LOADED); if (onLoad) { - onLoad(); + onLoad(e); } if (onLoadEnd) { onLoadEnd(); diff --git a/packages/react-native-web/src/modules/ImageLoader/index.js b/packages/react-native-web/src/modules/ImageLoader/index.js index 605d739b..85723fae 100644 --- a/packages/react-native-web/src/modules/ImageLoader/index.js +++ b/packages/react-native-web/src/modules/ImageLoader/index.js @@ -119,7 +119,7 @@ const ImageLoader = { image.onerror = onError; image.onload = e => { // avoid blocking the main thread - const onDecode = () => onLoad(); + const onDecode = () => onLoad({ nativeEvent: e }); if (typeof image.decode === 'function') { // Safari currently throws exceptions when decoding svgs. // We want to catch that error and allow the load handler