Network calls in a React Native app use fetch (or a library such as axios) to an HTTPS API. You must handle loading and error states, cancellation, timeouts and the absence of a connection. On a device or an emulator, localhost does not refer to the development machine.
Example
const res = await fetch('https://api.exemple.fr/clients');
const data = await res.json();