title: How to download images from URL and cache the for Android (React-Native)
body: <p>I need to download an image from the url and cache it to the cache directory of the application. I am developing the application on react-native platform. My teammate that works on IOS has a prop for  that allows to cache images as far I understand, and this prop is not supported yet on Android. I need a good way for caching images for Android.  </p>
  
  <p>The version of react-native: 0.60.5  </p>
  
  <p>I have tried using rn-fetch-blob library. I manged to store an image in the cache, but however, when I use the path</p>
  
  <pre><code>RNFetchBlob
    .config({
      fileCache : true,
      appendExt : 'jpg'
    })
    .fetch('GET', 'some url from firebase storage', {
    })
    .then((res) =&gt; {
       this.setState({ imagePAth: res.path() })
    })
  </code></pre>
  
  <pre><code>&lt;Image
    style={{ width: 200, height: 200, resizeMode: "contain" }}
    source={{ uri: "file://" + this.state.imagePath }}
  /&gt;
  </code></pre>
  
  <p>It does not render the image.</p>
  
  <p>My other teammates said that react-native-fs library is broken and it does not work. So I trusted them, but if there is anybody who managed to do that with react-native-fs, please let me know.</p>
  
  <p>I also tried using react-native-cached-image, but it was always giving me and error </p>
  
  <pre><code>undefined is not an object Netinfo.isconnected
  </code></pre>
  
  <p>The newest version of react-native-cached-image requires netinfo library by react-native-community. I was connected to the internet by the way. I was using the code example in the library to test it.</p>
  
  <p>If you need to referecne the library I used: <a href="https://github.com/fungilation/react-native-cached-image" rel="nofollow noreferrer">https://github.com/fungilation/react-native-cached-image</a></p>
  
  <p>I would really appreciate any help. Thank you!</p>