title: How to display image from variable in react native
body: <p>i have array of object and in object is string which is a path of image</p>
  <pre><code>  var [data, setData] = useState([
          {
              src: &quot;../assets/image.jpg&quot;,
          },
          {
              src: &quot;../assets/image2.jpg&quot;,
          },
      ])
    return (
    &lt;SafeAreaView&gt;
        &lt;View&gt;
            {data.map(image =&gt; {
                return(&lt;View&gt;
                        &lt;Image source={require(image.src)} /&gt; //THIS DOESNT WORK 
                    &lt;/View&gt;)
            })}
        &lt;/View&gt;
      &lt;/SafeAreaView&gt;
    );
  }
  </code></pre>
  <p>this work <code>require('../assets/image.jpg')</code> but i want from data to get src -
  and i tryed this ---- source={{uri: ``${user.src}`}} ---- it doesnt work---------------------------------------------------------
  And how i can display image from web not in project folder ( exemple: <a href="https://static.kupindoslike.com/slika-konj-_slika_O_80128845.jpg" rel="nofollow noreferrer">https://static.kupindoslike.com/slika-konj-_slika_O_80128845.jpg</a>)</p>