What is the difference between ADB QR Code, USB Debugging, or TCP debugging for React or Expo?

0 43
Avatar for amani2765
1 year ago
Topics: Experiences

Hello,

In the three cases, you must have the Expo Go application installed or enough storage space in your device.
Having an sd card doesn't mean you have enough space as react native could depend on internal memory even if you have formatted your sd to use as internal debugging memory.

ADB QR Code:

In this case, it could be only if you do not link your ADB to USB to your mobile phone and authorized it from your phone otherwise npm start android will only show QR Code that you must scan from your mobile phone. This feature is not for React Native.

It works either for IOS if you have an IOS system on your mobile phone or not an Android one by writing npm start ios.

It doesn't matter that you have an IOS system for expo created application and it will run automatically on Expo Go in the IOS system.

TCP Debugging:

This feature is for Android 11 or more where the PC and phone could be in the same wifi network by editing your TCP connection on the phone and doing the same for ADB. It must be installed in the same version like having at least Android 11 add to Google API 34 on your Android Studio version to run on your client and link phone from a Wifi connection. It works both for Expo Go and React Native.
USB Debugging:

This is for Android 10 and lower versions where you need to be in developer mode and also authorize TCP debugging and reverse proxy with ADB. If you have Android 8 make sure to install the same version on Android Studio. This will run also Expo Go with npm run android or either on React Native Application with npm start and click on a (run on android).

2
$ 0.17
$ 0.17 from @TheRandomRewarder
Avatar for amani2765
1 year ago
Topics: Experiences

Comments