rninit
is an alternative to react-native-cli. With a --source
argument, you can use a specific react-native version to initialize a new project.
npm i -g rninit
Create a new react-native project using latest react-native version
rninit init [Project Name]
Create a new react-native project using a specific react-native version
rninit init [Project Name] --source react-native@0.14.2
Or using a github repo.
rninit init [Project Name] --source git+https://github.com/facebook/react-native.git#v0.14.2
Please refer to npm install for valid --source
format.
As the original react-native-cli, we also support --verbose
argument:
rninit init [Project Name] --source react-native@0.14.2 --verbose