title: Unable to render image from local path on IOS in ReactNative
body: <p>I am working on a react native application. I am testing it on IOS simulator. I upload images in the application and images get stored on some local path, but when i come back to screen i am unable to show the image, the images space is there but there is no image.</p>
  
  <p>Path where image get stored is:</p>
  
  <pre><code>file:///Users/ssi/Library/Developer/CoreSimulator/Devices/0746958E-03AA-4A38-A208-2CD36B1A484E/data/Containers/Data/Application/628731CA-19CD-497C-8C01-CBC2BA5403B0/Library/Caches/C528D3FF-7153-4D16-9E82-8762AF317780.jpg
  </code></pre>
  
  <p>Code to show the image is:</p>
  
  <pre class="lang-js prettyprint-override"><code>render() {
    if (this.state.imageData) {
      return (
        &lt;View&gt;
          &lt;View style={styles.view}&gt;
            {
              (this.state.imageData == '' || this.state.imageData == null || this.state.imageData == undefined)
                ?
                null
                :
                this.state.imageData.map(img =&gt; {
                  var tst = img;
                  console.log(img.image.image);
  
                  return (
  
                    &lt;TouchableHighlight key={this.uuidv4()} onPress={() =&gt; {
                      this.setState({ zoom: img.image.image });
                      this.setState({ completeImageObject: img.image });
                    }}&gt;
                      &lt;Image const style={styles.imagePreview} source={{ uri: img.image.image }} /&gt;
                    &lt;/TouchableHighlight&gt;
                  );
                })
            }
          &lt;/View&gt;
          {this.state.zoom ? &lt;Card&gt;&lt;PinchZoomView scalable={false}&gt;&lt;FitImage resizeMode="contain" source={{ uri: this.state.zoom }} /&gt;&lt;/PinchZoomView&gt;
            &lt;TouchableOpacity style={styles.btn} onPress={() =&gt; this.deleteImage(this.state.zoom, this.state.completeImageObject)}&gt;
              &lt;Text style={{ color: 'white' }}&gt;
                Delete Image
              &lt;/Text&gt;
            &lt;/TouchableOpacity&gt;
          &lt;/Card&gt; : &lt;View style={styles.container}&gt;&lt;Text&gt;Bild zum vergrößern antippen.&lt;/Text&gt;&lt;/View&gt;}
        &lt;/View&gt;
  
      );
    } else {
      return (&lt;Text style={styles.noIMG}&gt;Keine Bilder vorhanden&lt;/Text&gt;)
    }
  }
  </code></pre>
  
  <p>Code for uploading image is:</p>
  
  <pre><code>ImagePicker.showImagePicker(options, (responseIMG) =&gt; {
  
                          if(responseIMG.uri){
                            ImageResizer.createResizedImage(responseIMG.uri, responseIMG.width, responseIMG.height, "JPEG", 10, 0).then((response) =&gt; {
  
  
                            var answs = this.state.answers ? this.state.answers : [];
                                var dt = new Date();
                                date = (dt.getDate() &gt; 9 ? dt.getDate() : "0" + dt.getDate())
                                + "." + (dt.getMonth() &gt; 9 ? dt.getMonth() : "0" + (dt.getMonth()+1))
                                + "." + dt.getFullYear();
  
                            var questionIdFromNavigation = this.props.navigation.state.params.q_id;
                            var imageToBeSavedInDb = {a_id: null, content: null, image: response.uri, date: date, p_id: this.state.project.p_id, quest_id: this.props.navigation.state.params.questionnaireId, q_id: questionIdFromNavigation, neu: 1, type:"2", user: em, deleted: 0, local_p_id: this.props.navigation.state.params.project.local_p_id} ;
                                answs.push({
                                    a_id: null,
                                    content: null,
                                    image: response.uri,
                                    date: date,
                                    p_id: this.state.project.p_id,
                                    quest_id: this.props.navigation.state.params.questionnaireId,
                                    q_id: questionIdFromNavigation,
                                    neu: 1,
                                    type:"2",
                                    user: em,
                                    deleted: false,
                                    local_p_id: this.props.navigation.state.params.project.local_p_id});
                                    this.setState({answers: answs});
                                    //saveAns(this.props.navigation.state.params.project, this.state.answers);
                                    db.insertImage(imageToBeSavedInDb, this.props.navigation.state.params.project.local_p_id);
                                    this.setState({loading: false});
  
                                    var imgs = this.state.images;
                                    if(imgs !== null &amp;&amp; imgs !== undefined &amp;&amp; imgs !== ''){
                                    imgs.push({image: imageToBeSavedInDb});
                                    this.setState({images: imgs});
                                    }else{
                                      this.setState({images: [{image: imageToBeSavedInDb}]});
                                    }
  
  
                    }).catch((err) =&gt; {
                       alert(err)
                      });
                          }else{
                            if (responseIMG.didCancel) {
  
                            }
                            else if (responseIMG.error) {
  
                            }
                            else {
                            }
                  }
                  });
  </code></pre>
  
  <p>I do get the above mentioned file path in "img.image.image". There is space for image but there is no image. I also find one more thing that path after the "Application" folder does not exist on my system. Why is that? If path does not exist, how image is stored at that path?</p>