-
Notifications
You must be signed in to change notification settings - Fork 935
Closed
Labels
Description
Describe the Feature
I'd like to propose a feature for doctor that will verify if the android device is attached correctly by listing the available devices. This could be a non-required check/ Warning ● in Common category to notify users of whether there is an attached device or not. This will allow users to differentiate device connection issues like : USB debugging enabled, developer options enabled etc. from others.
At times, restarting the adb server through adb kill-server; adb start-server might be helpful seeing this check failure rather than struggling to understand why the app launch is failing.
Possible Implementations
Fetch available devices (adb device) and emulators (emulator -list-avds)
Test Plan
- Build cli codebase using :
node ./scripts/build.js && yarn build:debugger - Link the cli-doctor using :
yarn link - In the example React Native app(Awesome Project), run
yarn link "@react-native-community/cli-doctor" - Run the CLI Doctor using :
npx @react-native-community/cli doctor
Related Issues
szymonrybczak and adamTrz