React-native-fast-image: No callbacks called, except onLoadStart

Created on 28 Jul 2019  路  8Comments  路  Source: DylanVann/react-native-fast-image

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.

bug

All 8 comments

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

Any progress on that issue?

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

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!

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

Any update on this?

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

any update on this?

Was this page helpful?
0 / 5 - 0 ratings