title: Function returns promise object instead of value (async/await)
body: <p>I got this code using the async/await :</p>
  
  <pre><code>function _getSSID(){
     return new Promise((resolve, reject)=&gt;{
        NetworkInfo.getSSID(ssid =&gt; resolve(ssid))
     })
  }
  
  async function getSSID(){
     let mySSID =  await _getSSID()
     if (mySSID == "error") {
       return 'The value I want to return'
     }
  }
  </code></pre>
  
  <p>And <code>getSSID()</code> is equal to this : 
  <a href="https://i.stack.imgur.com/LJAEi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LJAEi.png" alt="enter image description here"></a></p>
  
  <p>Looks like the <code>getSSID()</code> function will always return a promise. How can I get <code>"The value I want to return"</code> in plain text ?</p>
  
  <p>Any help is greatly appreciated.</p>