React Native | Run Emulator without Android Studio
Well as a React Native Developer we all love how simple it has made Mobile application development for us, People are now almost ignoring Native and learning directly React Native and even getting great paying job as React Native developer.
But unlike Flutter or Native, you have to open the android studio to start running Emulator so that you can work, React native don't have support for that. And I am going to show you a great workaround to be able to run android Emulator without opening the Android studio.
Follow me as I go through the instructions and make sure you have followed my step and try not to overlook any.
Step 1: Open Notepad
Step 2: Navigate to and make sure you have turned on the view hidden folder and write this command, and it will list all of your emulator Available.
C:\Users\Your Name\AppData\Local\Android\Sdk\tools>emulator -list-avds
e.g
Nexus_5X_API_29_x86
Pixel_2_XL_API_27
oneplus
Step 3: Now We were gonna write an instruction to open Emulator by a .cmd file which will automatically navigate as well as open the emulator by itself.
@ECHO OFF
ECHO We Are About to open up an emulator, Sit back and Relax. This wont take long.
cd C:\Users\SuperSami\AppData\Local\Android\Sdk\emulator
emulator -avd <Emulator Name of your Choice from the above list>
PAUSE
Save this as .cmd file and name it whatever you like and Bingo. Now click on it, and it should work.
Thank you.
Pardon me for kind of unprofessional English.