title: Axios post request is not working in React Native
body: <p>I'm getting my token from an API but unfortunately my API is returning 400 bad request. I've already checked my api via Postman and it's working fine there. Kindly let me know solution or any mistake.</p>
  
  <pre><code>async componentWillMount(){
   axios.post('http://api.myapiurl.com/token', {
                  grant_type: 'PASSWORD',
                  username: 'MY_USERNAME',
                  password: 'MY_PASSWORD'
              }, {
                  headers: {
                      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
                  }
              }).then(response =&gt; {
                  console.log(response.data)
              }).catch(err =&gt; console.log("api Erorr: ", err.message))
  }
  </code></pre>
  
  <p>error in catch </p>
  
  <blockquote>
    <p>Request failed with status code 400</p>
  </blockquote>