title: Could not find image
body: <p>I am unable to put custom image in React Native. </p>
  
  <p>Since, This is the first app I am building on Native, I am pretty much sure that I am doing something wrong with My concept.</p>
  
  <p>First I am importing my Image in a component </p>
  
  <pre><code> import tImage from './../images/imgt.png'
  </code></pre>
  
  <p>And then I am using If condition inside <code>FlatList</code> to attach it to a variable </p>
  
  <pre><code>&lt;FlatList
                          data={this.props.tCryptoNews.slice(0,5)}
                          renderItem={({index, item}) =&gt; {
                              this.image = item["data"]["thumbnail"]
                              if (this.image == "none") {
                                  this.image = tImage
                              }
                              return (
                              &lt;View &gt; 
                                   &lt;Image 
                                       source={{uri: this.image }}
                                       style={img}
                                       /&gt; 
                              &lt;Text style={tList}&gt;{item["data"]["title"]}&lt;/Text&gt;
                              &lt;/View&gt;
  
                              )}}
  </code></pre>
  
  <p>In the above code, It is displaying the image I am getting from web</p>
  
  <pre><code>this.image = item["data"]["thumbnail"]
  </code></pre>
  
  <p>but Not the one from my custom component </p>
  
  <pre><code> this.image =  tImage
  </code></pre>
  
  <p><strong>[Question:]</strong> What could i be doing wrong? I am pretty sure that I am importing image correctly since there is only one photo in my path and if the path would've been incorrect, it would have thrown error</p>
  
  <p><strong>[Update:]</strong> In the console it is logging something like this</p>
  
  <blockquote>
    <p>Could not find image</p>
    
    <p>file:///Users/xxxx/Library/Developer/CoreSimulator/Devices/56804007-072A-4169-9276-C68F99E1B7C2/data/Containers/Bundle/Application/CF5B4261-72B8-4E8D-BAC6-96B1842846BE/crypto.app/self.png</p>
  </blockquote>
  
  <p><strong>[Note:]</strong> It logs this even if I remove <code>If condition</code></p>
  
  <p>Adding my relevant directory Structure -> I am importing imgt from CoinCapCharts.js</p>
  
  <p><a href="https://i.stack.imgur.com/Q2fOx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q2fOx.png" alt="enter image description here"></a></p>