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

[Suggestions] More Usage Example

Open louisiscoding opened this issue 7 years ago • 5 comments

It would be great to have more usage example about:

  • The CacheManager itself (How & why would we want to use it ourselves ?)
  • What if i don't have base64 image and just thumbnail & image url ?
  • Use it without preview

Feel free to add any other suggestions 😄

louisiscoding avatar Feb 21 '18 13:02 louisiscoding

+1 Yup, would be so appreciated =). For example into a list with different URI.

cklinx avatar Feb 26 '18 17:02 cklinx

Same here,

I really don't understand the CacheManager usage at all, Also, please, ¿what if I want to use a local asset file as an image for the preview? I already have the local assets loaded on start, then, it would be nice if I could use the already loaded asset as "preview image", however, it currently does not accepts the require file number as a source.

Piropa avatar Mar 03 '18 00:03 Piropa

I also have difficulty understanding how this can be used.

nikolal avatar Mar 09 '18 10:03 nikolal

+1 I've managed to get the basic example working, but...

• Still can't figure out how to use a local image as a preview. • How do I disable the blur? It's blurring the preview image.

EDIT: so for anyone trying to figure out what I was:

<Image style={{ height: 200, width: 200 }} preview={preview} uri={uri} />

For a local image as the preview: const preview = require('path/to/file') otherwise it's the same { uri: 'data url' } dance.

kylegillen avatar May 23 '18 23:05 kylegillen

+1 Yeah struggling to understand how to implement this

Zazzzles avatar Sep 26 '18 10:09 Zazzzles