title: How to show base64 image - React Native
body: <p>Long story short;<br>
  I get team id from an API. When I got my team ids I want to make a get-request to my server that has the query to get the base64 from the databases and then display it when I get the string.</p>
  
  <p>Currently I'm using a function to get the image:</p>
  
  <pre><code>getLogo(teamid) {
    axios.get('url' + teamid)
      .then(res =&gt; return res.data);
  }
  </code></pre>
  
  <p>So that is my function, and this is my Image-component.</p>
  
  <pre><code>&lt;Image
    source={{ uri: `data:image/png;base64,${this.getLogo(this.homeid)}`}}
    style={{ height: 50, width: 50 }}
  /&gt;
  </code></pre>
  
  <p>Is this wrong? Should I approach this differently?
  I know that the base64 I get from my endpoint is correct, because I tried console.log the result and insert it in any image-element and it works.</p>
  
  <p>Thanks in advance!</p>