react-native-img-cache icon indicating copy to clipboard operation
react-native-img-cache copied to clipboard

Use with Local Images

Open agibson73 opened this issue 7 years ago • 4 comments

Is there a way to make this work with local uri s that works like phcachingimagemanager from native iOS? I think I have not had luck because your fetch is not done through the image component. Is it possible to use Image and onLoad of the Image to perform the same task that your download method handles now? Thanks for any insight. I struggle with some of the javascript compared to native code.

agibson73 avatar Nov 13 '17 01:11 agibson73

I have the same issue. The Image component can load images from the asset library (.xcassets on iOS). This is not possible with CachedImage!

EyMaddis avatar Nov 16 '17 16:11 EyMaddis

it cant even load local images from react native regular folder

<CachedImage
   src={require('.../image.png')}
/>

rogerkerse avatar Dec 04 '17 13:12 rogerkerse

Should be fixed in 1.5.3, can you confirm?

wcandillon avatar Dec 06 '17 05:12 wcandillon

Local images work for me after updating from 1.5.2 to 1.5.3.

arnibarnason avatar Dec 06 '17 10:12 arnibarnason