Connect react-native to android device with same wifi

 First of all, install an apk( which is related to your project ) into your android device which is connected to your pc/laptop.

After that open this apk in your android device and shake it. Now will be open a popop with many options

click the setting  and select Debug server host & port for device  here enter your system ip address like this

192.168.43.30:8081

and now click ok.

After complete above process, open your laptop and run your project using below command.

npm run android

and press 'r' for reload apk into your device by api (which is you have entered into your apk)

wait for 100%.

now your android device apk connected to your project. 

Now you can test your project with your android device.

Comments