If you want to run your app on the iOS Simulator or an Android Virtual Device, please refer to the instructions for "React Native CLI Quickstart" to learn how to install Xcode or set up your Android development environment. Running your app on a simulator or virtual deviceĮxpo CLI allows you to run your React Native app on a physical device without setting up a development environment. If you're curious to learn more about React Native, check out the Introduction to React Native. in the Expo issues (for issues about the Expo client or SDK).in the Expo CLI issues (for issues related to Expo CLI), or.If you have a problem with Expo, before creating a new issue, please see if there's an existing issue about it: These tools help you get started quickly, but before committing to building your app with Expo CLI, read about the limitations. You can also ask for help at Expo forums. Now what?Įxpo also has docs you can reference if you have questions specific to the tool. That's it!Ĭongratulations! You've successfully run and modified your first React Native app. The application should reload automatically once you save your changes. Open App.js in your text editor of choice and edit some lines.
Now that you have successfully run the app, let's modify it.
On iOS, use the built-in QR code scanner of the Camera app. On Android, use the Expo app to scan the QR code from your terminal to open your project. Install the Expo client app on your iOS or Android phone and connect to the same wireless network as your computer. This will start a development server for you. Still in the android tool, click on Virtual Devices on the left, and then click New.Expo init AwesomeProject cd AwesomeProject yarn start # you can also use: expo start Copy Select Available Packages, pick some platform versions and install. To install platforms run the android command located in the tools folder of the SDK (use Terminal.app on a Mac, or the Command Prompt on Windows, Linux folks you know what to do :). Step 3 - Install Android PlatformsĪt this point, I tried running the emulator command, but the SDK doesn't contain any Android Platforms, the Android platform is essentially Android OS, you need to install at least one version (eg 1.6, 2.1, 2.2, etc) to run the emulator.
Since we are using the command line you might find it useful to add the android-sdk- platform/tools folder to your system path so you can run the android commands from any folder. I placed the android-sdk-mac_86 folder in my /Applications/ folder, but you can put it wherever you want. Step 1 - Download the Android SDKĭownload the Android SDK, and unzip it somewhere. Also, I'm using a Mac, but I think the steps should be pretty close if you are running Windows or Linux.
I should mention that there is also an Eclipse Plugin for Android Development as well that you can use instead. So I thought I would give a quick and easy guide for folks to follow, that might be interested in getting started with Android Development and running the Android Emulator. I am in the process of building some mobile apps for one of my clients, and while I'm pretty familiar with running the iPhone simulator and building iPhone apps, I'm pretty new to the Android development tools at this point.