title: Show local images in React-Native NativeBase
body: <p>It works if I show the image like this: </p>
  
  <pre><code>&lt;Thumbnail source= {require('../images/01.jpg')} /&gt;
  </code></pre>
  
  <p>But fails on :</p>
  
  <pre><code>&lt;Thumbnail source= {require('../images/'+ {person.id} +'.jpg')} /&gt;
  </code></pre>
  
  <p><code>person.id</code> comes from an array of <code>people</code>. Printing it in <code>&lt;Text&gt;{person.id}&lt;/Text&gt;</code> gives the output as <code>01</code> or <code>02</code>. </p>
  
  <p>How to show a local image with the name as the prop.value? </p>
  
  <p>I tried: </p>
  
  <pre><code>&lt;Thumbnail source= {require(`../images/${person.id}.jpg`)} /&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;Thumbnail source= {require('../images/'+ person.id +'.jpg')} /&gt;
  </code></pre>
  
  <p>Both fails with error : Unnamed named module: '../images/1.jpg'
  <a href="https://i.stack.imgur.com/eo7OX.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/eo7OX.jpg" alt="enter image description here"></a></p>