mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Release React Native for Android
This is an early release and there are several things that are known not to work if you're porting your iOS app to Android. See the Known Issues guide on the website. We will work with the community to reach platform parity with iOS.
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var utils = require('./generator-utils');
|
||||
var yeoman = require('yeoman-environment');
|
||||
|
||||
function init(projectDir, appName) {
|
||||
console.log('Setting up new React Native app in ' + projectDir);
|
||||
|
||||
var env = yeoman.createEnv();
|
||||
env.register(require.resolve(path.join(__dirname, 'generator')), 'react:app');
|
||||
var generator = env.create('react:app', {args: [appName]});
|
||||
var args = process.argv.slice(3);
|
||||
var generator = env.create('react:app', {args: args});
|
||||
generator.destinationRoot(projectDir);
|
||||
generator.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user