Open bimix opened 2 years ago
try to write that cacheonly inside source parameter like this
<FastImage
source={{uri: imgSrc, cache: FastImage.cacheControl.cacheOnly}}
resizeMode="cover"
style={[s.pageCenter, s.page]}
collapsable={false}></FastImage>
Hey @putuoka, what is the purpose of using collapsable={false}
?
According to the documentation of the https://www.npmjs.com/package/react-native-fast-image if you do this:
cache={FastImage.cacheControl.cacheOnly}
it should only show images from cache, not make any network requests.However, I tried to clear cache and re run the app, it still fetches images:
To be sure I even clear in the componentDidMount: