## What can I do
##### 1、Create project based on react-native-cli.
##### 2、Download android sdk automatically without android studio.
##### 3、Create android emulator automatically without android studio.
##### 4、Run `npm start` can launch android & ios simulator automatically.
##### 5、Build your android & ios app by shell script automatically.
##### 6、Upload you ios app to app-store by shell script automatically.
##### 7、You don't need to care about how to install any more, just focus to write javascript code.

## Requirements

- macos
- Install xcode 9+  &nbsp;&nbsp;  [lookup](https://github.com/fwh1990/react-native-init/blob/master/src/maps/ios-xcode.json)
- Install node 8+  &nbsp;&nbsp;  [lookup](https://github.com/fwh1990/react-native-init/blob/master/src/maps/node-version.json)
- Install JDK 8+   &nbsp;&nbsp;  [lookup](https://github.com/fwh1990/react-native-init/blob/master/src/maps/android-jdk.json)

Android Studio is not required. We will use shell script to install sdk-platforms and sdk-tools.

You'd better install jdk8, not jdk10. Because jdk10 may make your app crash.

## Install

```bash
npm install -g react-native-init@latest
```
## Create project
Open terminal and type script:
```bash
react-native-init YourProjectName
```
And then run your project:
```bash
cd YourProjectName
npm start
```

## Options

### version {string}
You can specify the version you want, default value is the latest react-native version.
```bash
react-native-init YourProjectName --version=0.56.0
```

### npm {boolean}
Using npm to install package whatever.
```bash
react-native-init YourProjectName --npm
```
If you don't append this parameter, we will check **yarn** at first, and then check **npm** when yarn is not installed.

## Supported version
React-Native 0.55.4+

## Chinese Developer
Launch vpn may be a better choice.
