title: Fetch request post method in React Native
body: <p>I cannot make it work the fetch request with the post method, with get other  api calls works great.This is my code:</p>
  
  <pre><code>return fetch(URL_LOCAL + `/addLike`, {
      method: 'post',
      body: JSON.stringify({a: 1})
  })
      .then(response =&gt; Promise.all([response, response.json()]))
      .catch(err =&gt; {
          return Promise.reject(err);
      })
  </code></pre>
  
  <p>I made a console.log before the fetch about the URL_LOCAL and its fine it returns <a href="http://localhost:5000" rel="nofollow noreferrer">http://localhost:5000</a>.</p>
  
  <p>It gives me this error:</p>
  
  <pre><code>Network request failed
      at XMLHttpRequest.xhr.onerror (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:15825)
      at XMLHttpRequest.dispatchEvent (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:17902)
      at XMLHttpRequest.setReadyState (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:17657)
      at XMLHttpRequest.__didCompleteResponse (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:17484)
      at blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:17594
      at RCTDeviceEventEmitter.emit (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:3480)
      at MessageQueue.__callFunction (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:2386)
      at blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:2156
      at MessageQueue.__guardSafe (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:2348)
      at MessageQueue.callFunctionReturnFlushedQueue (blob:http://localhost:8081/459df9ca-c7b8-48bc-9c45-03d2f1e94f1d:2155)
  </code></pre>
  
  <p>I'am on an android simulator using chrome dev tools to see the logs, and i'am using node and mongodb as backend , but i put a log in the beginning of the call but is not fired</p>
  
  <p>EDIT:
  I make it work but with the api in production is the same code that i used with localhost:5000, I dont know what can be wrong with the localhost</p>