mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
42eb5464fd
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.
17 lines
484 B
JavaScript
Executable File
17 lines
484 B
JavaScript
Executable File
'use strict';
|
|
|
|
var path = require('path');
|
|
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 args = process.argv.slice(3);
|
|
var generator = env.create('react:app', {args: args});
|
|
generator.destinationRoot(projectDir);
|
|
generator.run();
|
|
}
|
|
|
|
module.exports = init;
|