I'm trying to attach a USB device (using USB OTG) to my Android device while developing an app using React-Native. Classically to debug an Android app, one connects using USB debug mode over adb, but since my USB port is being used for my USB OTG device, that's not possible.
I tried to use the adb tcpip
method (How can I connect to Android with ADB over TCP?) but that doesn't work because my device can't find the 'development server'. Has anyone had any luck debugging this way?
To connect your app with React Native Debugger, you need to run your app and start debug mode. To start debug mode, shake your mobile device or press Command + Shift + Z or Ctrl + M and choose the debug option.
Make sure your phone and the PC used for development are connected in the same LAN. From the Rage Shake menu (shake the device while your app's screen is active) you should be able to navigate to Dev Settings > Debug server host & port for device
which lets you enter the IP & port of the development server for loading from the packager.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With