I've built a simple api using Flask and a react native front end. I am running both of these on separate ports on my computer. The flask api works properly and can be accessed inside a browser. When I run:
fetch('http://127.0.0.1:5000')
.then((responseJson) => {
callback(responseJson);
})
I get an error on my android device of "Network request failed". Has anyone experiences this problem before? I have seen other have experienced similar problems but I could not find a solution online. Thanks