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

Veröffentlicht am: 20 April 2024
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video SOLVED! [TypeError: Network request failed] React Native with NodeJs mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Micro Computing 20 April 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,168 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!