When I create a brand new project using react-native init
(RN version 0.29.1) and put a fetch in the render method to the public facebook demo movie API, it throws a Network Request Failed
. There is a very useless stack trace and I can't debug network requests in the chrome console. Here is the fetch I'm sending:
fetch('http://facebook.github.io/react-native/movies.json')
.then((response) => response.json())
.then((responseJson) => {
return responseJson.movies;
})
.catch((error) => {
console.error(error);
});
http
->https
(if possible) will most likely fix your issue – Nick Zuber192.168.1.25:3000
fromifconfig
without binding my server to that iprails server --binging=192.168.1.25 --port=3000
– Fabrizio Bertoglio