title: Require local image downloaded with react-native-fetch-blob
body: <p>I’m trying to require an image downloaded with react-native-fetch-blob in my Image component, but when I give it the image path it keeps saying me « Unknow named module: ‘/Users/…/Library/…’</p>
  
  <p>What is the right way to require images stored in a local directory ?</p>
  
  <pre><code>let imagePath = null
  
  RNFetchBlob
    .config({
       fileCache : true
    })
    .fetch('GET', uri)
    // the image is now dowloaded to device's storage
    .then((resp) =&gt; {
       // the image path you can use it directly with Image component
       imagePath = resp.path()
       this.setState({ uri: require(imagePath) })
  
       try {
         AsyncStorage.setItem(`${this.props.uri}`, imagePath);
       } catch (error) {
         console.log(error)
       }
    })
  </code></pre>
  
  <p>My render method :</p>
  
  <pre><code>render() {
      return(
        &lt;Image style={this.props.style} source={this.state.uri} /&gt;
      )
  }
  </code></pre>
  
  <p>The problem is not because I set a variable as source because it's working when I put something like : <code>this.setState({ uri: require('../images/test.jpg') })</code> after my download.</p>