react-native-expo-image-cache
react-native-expo-image-cache copied to clipboard
[Suggestions] More Usage Example
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 😄
+1 Yup, would be so appreciated =). For example into a list with different URI.
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.
I also have difficulty understanding how this can be used.
+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.
+1 Yeah struggling to understand how to implement this