Add the code below to your npm scripts in package.json
"usb": "react-native run-android --deviceId $(adb devices | grep -oP '[0-9a-zA-Z]{7,30}\t')",
Example:
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"usb": "react-native run-android --deviceId $(adb devices | grep -oP '[0-9a-zA-Z]{7,30}\t')",