Hello Friends 👋,
Welcome To Infinitbility! ❤️
This tutorial will help you to verify connected devices in react native it will connected devices name or emuletor name and also share status of connected devices like they are authorize or not.
Before check connected devices list we will understand how to connect any android device to react native.
Step 1: Developer options
Most Android devices can only install and run apps downloaded from Google Play, by default. You will need to enable USB Debugging on your device in order to install your app during development.
To enable USB debugging on your device, you will first need to enable the “Developer options” menu by going to Settings → About phone → Software information and then tapping the Build number row at the bottom seven times.
Step 2: Enable USB Debugging
To enable USB Debugging, go to Settings → Developer options to enable “USB debugging”.
Step 3: Trust Devices
After Enable USB Debugging and connected your android device to computer using USB, You will get Trust Devices pop-up Click on checkbox to trus everytime and click on Allow button.
Step 4: Check Connected Devices
To check your device attach ot not in react native, open your terminal and enter
adb devices command and get all connected devices list.
$ adb devices List of devices attached emulator-5554 offline # Google emulator 14ed2fcc device # Physical device
Thanks for Reading…