If you’re using Windows and building React Native apps with Expo, you probably know how convenient it is to use the Expo Go app on your physical device. But what if you want to run your app directly inside your computer using an Android Emulator?
In this guide, you’ll learn how to:
Let’s get started.
Before anything else, you need to have Node.js installed.
cmd
in the Start menu).node -v
node -v
npm -v
You’ll see the versions of Node.js and npm. npm comes bundled with Node.js.
To run your app in an emulator, we need Android Studio and a virtual device.
Once Android Studio launches:
To create your virtual device:
My Android
)To run the emulator directly from the command line, do this:
Open your user folder, click View > Hidden items, and find:
AppData > Local > Android > Sdk
Copy that path.
ANDROID_HOME
:ANDROID_HOME
, Value: (paste the SDK path)platform-tools
to PATH:Path
under User variablesC:\Users\{YourName}\AppData\Local\Android\Sdk\platform-tools
Use the below command or you can read more about the new project setup the expo doc itself.
npx create-expo-app@latest
Once the project is ready just navigate to the folder and open it inside vs code or just start it fromt he terminal using the following command.
npm start
This opens the Expo Dev Tools in the browser.
To open the emulator, just press a
in the terminal. It will try to open your default emulator.
⚠️ If you see "device not connected", restart your PC and try again.
If your emulator behaves weirdly or becomes slow:
This clears up storage issues and often fixes the problem.
Once the emulator boots up and the app installs Expo Go, you’ll see your app running just like it would on a real device.
Make a change in App.js
(e.g., update text), save it, and you’ll see it instantly update in the emulator.
That’s how you run an Expo React Native app inside an Android Emulator on Windows. No physical device needed!
If this guide helped, feel free to share it with others learning React Native.