react-native-image-cache-hoc
react-native-image-cache-hoc copied to clipboard
Update documenatation to clarify cacheFile
I noticed that .cacheFile doesn't respect the fileDirName that's been set in the options. This means that you might end up downloading the file twice, and can break certain offline solutions. This caught me out for a while so figured it was worth adding to the docs.
A future improvement would be to unify the two so that fileDirName is respected in both cases.
See this line, where no options are passed: https://github.com/billmalarky/react-native-image-cache-hoc/blob/master/lib/imageCacheHoc.js#L60