How to convert base64 into Blob in React Native?
<p>I am going to convert b64 to blob in react native.</p>

<p>But I am getting error on atob function.</p>

<p>Here are my codes.</p>

<pre><code>var binary = atob(this.state.avatarSource.uri.split(',')[1]);
var byteNumbers = new Array(binary.length);

for(var i = 0; i &lt; binary.length; i++) {
  byteNumbers.push(binary.charCodeAt(i));
}
var file = new Blob([new Uint8Array(byteNumbers)], {type: 'image/jpeg'});
</code></pre>

<p>Anybody has any idea?</p>