title: React Native save base64 image to Album
body: <p>Third Party API return a "QR code image" in base64 encode,<br>
  I need save that image to User's Album.</p>
  
  <ul>
  <li>CamerRoll - not support saving base64 image to album    </li>
  <li>React-Native-Fetch-Blob -
  <a href="https://github.com/wkh237/react-native-fetch-blob" rel="noreferrer">https://github.com/wkh237/react-native-fetch-blob</a><br>
  still looking into it</li>
  <li>React-Native-fs - 
  <a href="https://github.com/itinance/react-native-fs" rel="noreferrer">https://github.com/itinance/react-native-fs</a><br>
  I am trying this now</li>
  <li>There are few npm modules with very little Github star (&lt;10)</li>
  </ul>
  
  <p>the React-Native-Fetch-Blob maintainer gone missing, so no one answering Github Issue,
  <code>createFile</code> from <a href="https://github.com/wkh237/react-native-fetch-blob/wiki/File-System-Access-API#createfilepath-data-encodingpromise" rel="noreferrer">React-Native-Fetch-Blob Document</a> not working as expected(not saving image into album)</p>
  
  <pre><code>  import fetch_blob from 'react-native-fetch-blob';
  
    // json.qr variable are return from API
  
    const fs = fetch_blob.fs
    const base64 = fetch_blob.base64
    const dirs = fetch_blob.fs.dirs
  
    const file_path = dirs.DCIMDir + "/some.jpg"
    const base64_img = base64.encode(json.qr)
  
    fs.createFile(file_path, base64_img, 'base64')
    .then((rep) =&gt; { 
      alert(JSON.stringify(rep));
    })
    .catch((error) =&gt; {
      alert(JSON.stringify(error));
    });
  </code></pre>
  
  <h1>Anyone deal with this problem before?</h1>
  
  <h1>How to save a base64 encode Image string to User album? (as a jpg or png file)</h1>
  
  <p>because I <code>fetch</code> an API with no CORS header,<br>
  I can't debug it in <code>Debug JS Remotely</code><br>
  Chrome would stop that request from happening,  </p>
  
  <p>I have to run that on my Android Phone to make it work<br>
  (no CORS control on real phone)   </p>
  
  <p>I am planing use Clipboard save base64 string,<br>
  and hardcode it in my code,<br>
  to debug what's wrong with <code>react-native-fetch-blob</code> <code>createFile</code> API</p>