How to get response header in react native android?
<p>Hello i want to get response header after fetch POST request. I tried to debug to see what inside <code>response</code> with <code>console.log(response)</code>. I can get response bodies from <code>responseData</code> but i have no idea how to get the header. I want to get both header and the body. Please help. thanks:)</p>

<p>Here's the example what i've done:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>   fetch(URL_REGISTER, {
      method: 'POST',
      body: formData
    })
      .then((response) =&gt; response.json())
      .then((responseData) =&gt; {
        if(responseData.success == 1){
          this.setState({
            message1: responseData.msg,
          });
        }
        else{
          this.setState({
            message1: responseData.msg,
          });
        }
      })
      .done();
    }, </code></pre>
</div>
</div>
</p>