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

No callbacks called, except onLoadStart

Open wsdt opened this issue 6 years ago • 11 comments

RN 0.60.4 RN-Fast-Image: 7.0.2

No callback is called except for the onLoadStart(). The error and onLoad as well as onLoadEnd-callback are ignored.

Thank you in advance.

I saw this was an issue in older versions, it seems like this is a problem again.

wsdt avatar Jul 28 '19 14:07 wsdt

I have the same problem in android device, when i trun app to backgroud, and return to foreground, the onLoad and onLoadEnd will callback

erlangzhang avatar Aug 01 '19 13:08 erlangzhang

Any progress on that issue?

wsdt avatar Aug 08 '19 14:08 wsdt

I was having the same problem on android, and I figured out a workaround by defining a big maxHeight style to the parent of the FastImage instance. I also added "100%" width and height style to the FastImage.

Example:

<View style={{ maxHeight: 3000 }}>
  <FastImage
     style={{
       width: "100%",
       height: "100%"
     }}
     source={{ uri }}
     onLoad={this.onLoad}
   />
</View>

I hope it works for you too @wsdt @erlangzhang

halilb avatar Aug 19 '19 10:08 halilb

I was having the same problem on android, and I figured out a workaround by defining a big maxHeight style to the parent of the FastImage instance. I also added "100%" width and height style to the FastImage.

Example:

<View style={{ maxHeight: 3000 }}>
  <FastImage
     style={{
       width: "100%",
       height: "100%"
     }}
     source={{ uri }}
     onLoad={this.onLoad}
   />
</View>

I hope it works for you too @wsdt @erlangzhang

It works for me! Thanks!

revanli avatar Oct 09 '19 02:10 revanli

FWIW none of the onLoad events seem to work on the React Native <Image/> component either. I only tested iOS. Related?

joebernard avatar Oct 27 '19 21:10 joebernard

Any update on this?

joebernard avatar Apr 11 '20 14:04 joebernard

This appears to still be an issue in 8.3.4. onLoadStart is triggered but onLoad and onLoadEnd do not.

joebernard avatar Dec 06 '20 02:12 joebernard

any update on this?

ChienWeiChek avatar Mar 07 '21 07:03 ChienWeiChek

this happens to me aswell, @halilb's fix did not work for me

ghiculescualexandru avatar Oct 18 '21 10:10 ghiculescualexandru

Can reproduce

ZeroPie avatar Nov 13 '21 02:11 ZeroPie

Any update here?

stainsmjohnson avatar Apr 29 '24 09:04 stainsmjohnson