Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/rninit
Run `react-native init` with specific react-native@version
https://github.com/jacobbubu/rninit
Last synced: 2 months ago
JSON representation
Run `react-native init` with specific react-native@version
- Host: GitHub
- URL: https://github.com/jacobbubu/rninit
- Owner: jacobbubu
- Created: 2015-12-22T07:00:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T07:14:36.000Z (about 9 years ago)
- Last Synced: 2023-08-24T06:47:22.088Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 37
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`rninit` is an alternative to [react-native-cli](https://www.npmjs.com/package/react-native-cli). With a `--source` argument, you can use a specific [react-native](http://www.npmjs.org/react-native) version to initialize a new project.
## Install
``` bash
npm i -g rninit
```## Usage
Create a new react-native project using latest react-native version
``` bash
rninit init [Project Name]
```Create a new react-native project using a specific react-native version
``` bash
rninit init [Project Name] --source [email protected]
```Or using a github repo.
``` bash
rninit init [Project Name] --source git+https://github.com/facebook/react-native.git#v0.14.2
```Please refer to [npm install](https://docs.npmjs.com/cli/install) for valid `--source` format.
As the original [react-native-cli](https://www.npmjs.com/package/react-native-cli), we also support `--verbose` argument:
``` bash
rninit init [Project Name] --source [email protected] --verbose
```