react-native-fast-image
react-native-fast-image copied to clipboard
No callbacks called, except onLoadStart
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.
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
maxHeightstyle to the parent of theFastImageinstance. I also added "100%" width and height style to theFastImage.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?
this happens to me aswell, @halilb's fix did not work for me
Can reproduce
Any update here?