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
This commit is contained in:
parent
1c9a74bbd1
commit
441c464c2b
|
@ -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'));
|
||||
}
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue