title: Network Error in axios post request react-native
body: <p>This is my method to checking Auth by axios post request   </p>
  
  <pre><code>CheckAuth() {
      let obj = {
                  username: 'axy@gmail.com',
                  password: 'zzxxz'
              }
      //oauth_credentials imported 
  
      let form_data = Object.assign(obj, oauth_credentials)
  
      axios({
             method: 'post',
             url: routes.oauth_token,
             headers: {
               'Content-Type': 'application/x-www-form-urlencoded',
               'Accept': 'application/json',
             },
             data: form_data
           })
              .then(res =&gt; {
                  console.log(res)
              })
              .catch(err =&gt; {
                  console.log(err)
              })
     }
  </code></pre>
  
  <p>I want to send post request to get token but when i try, It show a Network error in console which is below</p>
  
  <pre><code>Error: Network Error
      at createError (createError.js:16)
      at XMLHttpRequest.handleError (xhr.js:87)
      at XMLHttpRequest.dispatchEvent (event-target.js:172)
      at XMLHttpRequest.setReadyState (XMLHttpRequest.js:546)
      at XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:381)
      at XMLHttpRequest.js:485
      at RCTDeviceEventEmitter.emit (EventEmitter.js:181)
      at MessageQueue.__callFunction (MessageQueue.js:306)
      at MessageQueue.js:108
      at MessageQueue.__guard (MessageQueue.js:269)
  </code></pre>