Skip to content

Create react native projects with native code based on react-native-cli

License

Notifications You must be signed in to change notification settings

ouyangcode/react-native-init

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 android & ios app by shell script automatically.
6、Upload 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+    lookup
  • Install node 8+    lookup
  • Install JDK 8+    lookup

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

npm install -g react-native-cli@latest react-native-init@latest

Create project

Open terminal and type script:

react-native-init YourProjectName

And then run your project:

cd YourProjectName
npm start

Options

version {string}

You can specify the version you want, default value is the latest react-native version.

react-native-init YourProjectName --version=0.56.0

npm {boolean}

Using npm to install package whatever.

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+

About

Create react native projects with native code based on react-native-cli

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 53.5%
  • Shell 46.5%