From 441c464c2b85aeab4b4ecd1739948c04b7906532 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Tue, 3 Nov 2015 04:02:49 -0800 Subject: [PATCH] Make it clear Android emulator is the quickest way to get started Summary: A lot of people try to use a device as the very first thing when trying out React Native. I've observed this at the developer workshop in Prague and on Twitter. However, developing on pre-API 21 devices is quite involved: https://facebook.github.io/react-native/docs/running-on-device-android.html I'm thinking we could recommend installing Android together with Android studio. Android studio installs HAXM for you (hardware acceleration, without this Google emulators are useless) and also creates and starts emulators. So it would be quite a smooth experience similar to pressing 'Run' in Xcode. We'd just need to integrate with Gradle so that installing the app also starts the packager. I think that's something we should do in any case. Probably an even better option is to build a React Native-specific tool that lets you do everything you need: opens the Android SDK Manager, creates and starts emulators, detects whether you have Genymotion and opens it, upgrades node and npm etc. public Reviewed By: vjeux Differential Revision: D2604774 fb-gh-sync-id: c7ffb701b4e5209815faf652926937c22943be95 --- local-cli/generator-android/index.js | 2 +- local-cli/generator-ios/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cli/generator-android/index.js b/local-cli/generator-android/index.js index eb4a43944..9a1e2c5b8 100644 --- a/local-cli/generator-android/index.js +++ b/local-cli/generator-android/index.js @@ -84,7 +84,7 @@ module.exports = yeoman.generators.NamedBase.extend({ end: function() { var projectPath = this.destinationRoot(); this.log(chalk.white.bold('To run your app on Android:')); - this.log(chalk.white(' Have an Android emulator running, or a device connected')); + this.log(chalk.white(' Have an Android emulator running (quickest way to get started), or a device connected')); this.log(chalk.white(' cd ' + projectPath)); this.log(chalk.white(' react-native run-android')); } diff --git a/local-cli/generator-ios/index.js b/local-cli/generator-ios/index.js index 68aee3f6a..1e1afb67b 100644 --- a/local-cli/generator-ios/index.js +++ b/local-cli/generator-ios/index.js @@ -50,6 +50,6 @@ module.exports = yeoman.generators.NamedBase.extend({ var projectPath = path.resolve(this.destinationRoot(), 'ios', this.name); this.log(chalk.white.bold('To run your app on iOS:')); this.log(chalk.white(' Open ' + projectPath + '.xcodeproj in Xcode')); - this.log(chalk.white(' Hit Run button')); + this.log(chalk.white(' Hit the Run button')); } });