React Native AsyncStorage getItem returns promise not value
<p>I have a login form and I am able to post the form values. After the successful POST request, I get authentication token returned from the API. I need to save this token for future reference in local storage. For saving this auth token I am using AsyncStorage. I used <code>AsyncStorage.setItem(STORAGE_KEY, responseData.auth_token);</code> setItem method to save the data.</p>
<p>If I console log this by :</p>
<p><code>console.log(AsyncStorage.setItem(STORAGE_KEY));</code></p>
<p>it returns as promise object like this</p>
<pre><code>    Promise {_45: 0, _81: 0, _65: null, _54: null}
_45
:
0
_54
:
null
_65
:
&quot;efcc06f00eeec0b529b8&quot;
_81
:
1
__proto__
</code></pre>
<p>:
Object</p>
<p>how can I get the exact value from the AsyncStorage.getItem method?</p>
<p>This is my fetch method</p>
<pre><code>fetch('http://54.255.201.241/drivers', {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      first_name: this.state.firstName,
      mobile_number: this.state.mobileNumber,
      vehicle_number: this.state.vehicleNumber,
      vehicle_type_id: 1,
    })
  }).then((response) =&gt; response.json()).then((responseData) =&gt; {
    if (JSON.stringify(responseData.mobile_number) == (this.state.mobileNumber))
    {
      AsyncStorage.setItem(STORAGE_KEY, responseData.auth_token);
      console.log(AsyncStorage.getItem(STORAGE_KEY));
      this.props.navigator.push({id: 'Otp'})
    }
    else
    {
      Alert.alert(&quot;SignUp Failed&quot;,&quot;Mobile number already taken.&quot;)  
    }
  })
  .done();
</code></pre>
<p>BTW in documentation they have used await. I tried using that but the pages are not loading.Here with attached the screenshot.<a href="https://i.stack.imgur.com/NpD0y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NpD0y.png" alt="enter image description here" /></a></p>