- Install React-Native by running
yarn global add react-native-cli. - Unzip Android SDK Manager and ADB put them under
C://or somewhere that you can access. - Modify path:
- Open a file explorer, right click
This PCand selectProperties. - Then select
Advance System Settings, thenEnviroment Variables. - Choose path, and add the
binfolder from the SDK Manager, and the root directory of ADB tools. - To verify what you did works, open a command line promt (I used PowerShell), and run
adbandsdkmanager. So long as they output something your good, if not redo the previous steps.
- Open a file explorer, right click
- Now run
sdkmanager --licence, and accept all the licences. - Run
react-native init <project name>. - Connect your android device and verify using
adb devices. - Run
react-native run-androidand wait. If it works, you are now ready to develop react native applications using android.
Best of luck.
if you use windows, you could follow this step https://android.tutorials24x7.com/blog/how-to-install-android-sdk-tools-on-windows @yakash204