Check out example codes for "adb: command not found". It will help you in understanding the concepts better.

Code Example 1

export ANDROID_HOME=/Users/$USER/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Code Example 2

~/Library/Android/sdk/platform-tools/adb

Learn ReactJs, React Native from akashmittal.com