How to run React-Native app on mobile wireless

100rabhcsmc

Saurabh Chavan

Posted on December 28, 2021

How to run React-Native app on mobile wireless

👋Hey,
Welcome 🙏

This tutorial is about React-Native🚀.

When I started learning React-Native that time I used to run React-Native App on mobile through the USB Cable,
But the best way is to connect android mobile through wireless 📲 and run React-Native App.

🕸In this tutorial we will learn how to run React-Native App on real Device or android mobile wirelessly📲

🎬let's Start,

🥇first thing make Sure your laptop/pc connected to wi-fi
then find the IP-address

👉How to find IP-address;

  1. Open the Activities overview and start typing Settings.
  2. Click on Settings.
  3. Click on Wi-Fi in the sidebar to open the panel.
  4. Click the settings for the IP address and more details on your connection.

Image description

You will get IP-address🎉

👇Next,

I hope you created a react-native app.
Use the following command to run the React-native app in android.

react-native run-android
Enter fullscreen mode Exit fullscreen mode

after that you will get an error🚨:

Image description

simply shack the 📱device and it will open the Developer Menu.
click on settings⚙️

Image description

you will find the option
⚒Debug server host & port for device📱
Click on it
Image description

Add your ip-address:8081

Image description

then go back to the app and reload the app 📲
🎉Congratulation your React-Native App runs wireless on the real device.

😻I hope this tutorial is helpful:)
Thank You ❤️🌸:)

💖 💪 🙅 🚩
100rabhcsmc
Saurabh Chavan

Posted on December 28, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related