Hi,
Great library btw. I've stumbled upon this issue after trying to make a loading component for the FastImage one showing an activity indicator while the image is... well loading 馃槃 . The odd thing is that the onLoadStart is called, but no other callback happens if the image is taken from cache. One solution would be to force the image to be reloaded every time by altering the request param from the url but that would just defeat the purpose.
I've tested only on iOS. Is this a problem with the underlying iOS library or does this behaviour happen on Android too ?
@theys1995 Are you using the most recent version of react-native-fast-image? This was an issue before but I think it's been fixed.
I'm actually getting this using 4.0.14. onLoadStart is the only one that works, onLoad onLoadEnd and onProgress never get called. I'm unsure what info I can provide to help figure out what's happening since it seems like I've run into a rare edge case.
<FastImage
style={styles.image}
source={{uri: url}}
resizeMode='contain'
onLoadStart={() => {
console.log('loading')
this.setState({ loading: true })
}}
onProgress={(e) => {
console.log('progress')
}}
onLoadEnd={() => {
console.log('loaded')
this.setState({ loading: false })
}}
/>
Fixed it. I had to delete the app's /Users/<username>/Library/Developer/Xcode/DerivedData folder after upgrading from a previous version.
I also found I had to delete <my RN project>/ios/build :+1:
Is it closed? I got this issue on Android, I onError it's work but onLoadStart never called. How can I resolve it?
@DylanVann I think needs further investigation. Just like @minhchienwikipedia I'm running into this after updating from 4.0.14 to 5.0.3.
I got this issue on Android with react native fast image version 5.1.2 onError nerver called.
I've got the same issue: onLoadEnd is never called for external resources on Android, only for local ones.
RN Fast Image 6.0.3 and RN 0.57.8
I am also getting same issue, Is it fixed?
Getting this issue too
RN 0.60.4
latest RN Fast Image: 7.0.2
I also getting the same issue in RN 0.60.4 and fast image 7.0.2.. any resolution? @DylanVann
Getting this still with RN 61.5 and FastImage 8.1.5
Most helpful comment
Is it closed? I got this issue on Android, I onError it's work but onLoadStart never called. How can I resolve it?