react-native-expo-image-cache icon indicating copy to clipboard operation
react-native-expo-image-cache copied to clipboard

How to use it?

Open smartsoul opened this issue 5 years ago • 5 comments

I don't know how to use it at all.

smartsoul avatar Oct 17 '18 08:10 smartsoul

Me, too. I would especially be interested if it is possible to preload local images loaded with require('path')? Because I would like to resolve this problem, I have.

FrankenApps avatar Nov 10 '18 10:11 FrankenApps

Yeah, the docs aren't that useful here. I assume you make the image, then next time just check if it exists in the cachemanager and otherwise just render it yourself? Either way, really surprised there isn't a super simple walk through.

nandorojo avatar Feb 07 '19 23:02 nandorojo

Hey all, there's actually no walk-through needed. You can use it just like the vanilla Image component.

nandorojo avatar Feb 13 '19 16:02 nandorojo

Hey all, there's actually no walk-through needed. You can use it just like the vanilla Image component.

nope, it doesnt work like that, instead of using source, use uri example: <Image uri={imageURL}>

cielor avatar Apr 29 '19 21:04 cielor

Hey all, there's actually no walk-through needed. You can use it just like the vanilla Image component.

nope, it doesnt work like that, instead of using source, use uri example: <Image uri={imageURL}>

Yup, you're right, my apologies. I believe it's the preview that takes in a {{ uri: '' }}, but I haven't seen it in a while.

nandorojo avatar May 01 '19 02:05 nandorojo