1
Guys I’m with a local api in eclipse and I’m using Tomcat I’m trying to use it with Xmlhttprequest in React-Native and I’m not getting from the always error request.
onPressButtonAtualizarBanco=() => {
    var request = new XMLHttpRequest();
    request.onreadystatechange = (e) => {
        if (request.readyState !== 4) {
            return;
        }
        if (request.status === 200) {
            console.log('success', request.responseText);
        } else {
            console.warn('error');
        }
    };
    request.open('GET', 'http://localhost:8080/Restful/cliente/brinddata');
    request.send();
}
The api data is returning in xml so I am using Xmlhttprequest
What error? Specify
– Vinícius Carra
It worked '-' and I used it locally!
– Night