title: React Native - SQLite transaction is not waiting for result
body: <p>I want to fetch data from a database (profile and config etc.) and wait for the data before calling the next functions. I was expectiong, that if I put the transaction in a function, call this function in an async function and wait, this would work, but it doesn't:</p>
  <pre><code>function getProfileData() {
      return db.transaction(
        tx =&gt; {
          tx.executeSql('SELECT value FROM tbl_config WHERE name=&quot;user_email&quot;', [], (tx, results) =&gt; {
            console.log(results.rows.item(0).value);
            return results.rows.item(0).value;
        });
      }, null, null); 
  }
  
  async function fetchData() {
    console.log('before fetch')
    var res = await getProfileData();
    console.log(res);
    console.log('after fetch');
  }
  
  fetchData(); 
  </code></pre>
  <p>The console shows me the result from the function <em>getProfileData()</em>, but in the async function <em>var res = await getProfileData()</em> is undefined.</p>
  <p>How do I fetch data step by step?</p>