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

[BUG] Image onLoad never fires

Open thristhart opened this issue 7 years ago • 2 comments

Environment

  • Target Platform Version(s): 10.0.18362.0
  • Target Device(s): Xbox
  • Visual Studio Version: 2019
  • Build Configuration: Debug

Steps to Reproduce

<Image source={{uri: "http://someImageUri", width: 240, height: 240}} onLoad={() => console.log("loaded")} />

Expected Behavior

onLoad fires, calling console.log("loaded").

Actual Behavior

onLoad never fires.

Additional context

After a very light investigation, I think the reason this is happening is that ImageShadowNode in ImageViewManager is not actually being used, which currently contains all the onLoad event logic.

thristhart avatar Jul 31 '19 16:07 thristhart

@stecrain added this ShadowNode in https://github.com/microsoft/react-native-windows/pull/2667 . but didn't override createShadow on ImageViewManager to use it.

ahimberg avatar Aug 01 '19 15:08 ahimberg

oh man, I can take this one. my bad clearly

stecrain avatar Aug 02 '19 00:08 stecrain