question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add function to get local image file uri from disk cache.

See original GitHub issue

CameraRoll.saveToCameraRoll can save image to local , but android need a URI, such as “file:///sdcard/img.png”。 can react-native-fast-image get this uri? like react-native-img-cached

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
DylanVanncommented, May 1, 2018

In the case of file: or content: urls FastImage will fall back to using Image. This is included in the current version on npm, v4.0.8.

edit: oh, I think that’s not actually what you want. @tonyhb that should work for you though.

I can look into providing this. PRs are welcome.

0reactions
tryanbotcommented, Jan 29, 2022

anyone know is this feature finally released or not?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can force to add an image to the disk cache
You should copy image file into cache directory yourself: File fileInDiscCache = discCache.get(imageUri); // copy your file into 'fileInDiscCache' file ...
Read more >
Caching images in React Native: A tutorial with examples
In this tutorial, we'll first show you how to cache images in React Native using the react-native-fast-image library.
Read more >
Glide v4 : Caching - GitHub Pages
If all four steps fail to find the image, then Glide will go back to the original source to retrieve the data (the...
Read more >
Chapter 1. Image service Red Hat OpenStack Platform 16.1
Use the glance-direct method to import images from a local file system. 1.1.5. Improving scalability with Image service caching. Use the glance-api caching...
Read more >
Image
uri. Required. string, The location of the image. ; success. Required. function, The function that will be called if the image was successfully ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found