SOLVED! [TypeError: Network request failed] React Native with NodeJs

Pubblicato il: 20 aprile 2024
sul canale di: Micro Computing
1,168
8

The video above demonstrates one method to resolve the TypeError: Network request failed error in React Native.

1. Ensure that your laptop and emulator/android device are connected to the same network.
2. Open the properties tab of your network.
3. Copy the IPv4 address and replace "localhost" with it.
4. Save your application.

Alternatively:

1. Make sure your laptop and emulator/android device are connected to the same network.
2. After starting the React Native app, you will see the following lines of code:

Logs for your project will appear below. Press Ctrl+C to exit.
› Opening on Android...
› Opening exp://192.168.43.210:8081 on DUB_LX2
› Press ? │ show all commands
› Reloading apps

3. Copy the IP address (e.g., 192.168.43.210) and replace "localhost" with it.

#typeerror #reactnative #nodejs #api


In questa pagina del sito puoi guardare il video online SOLVED! [TypeError: Network request failed] React Native with NodeJs della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Micro Computing 20 aprile 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,168 volte e gli è piaciuto 8 spettatori. Buona visione!