Skip to content
React Native command line tools
Branch: master
Clone or download
Latest commit 827daa4 Apr 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
__e2e__ feat: extract iOS and Android specific linking files out of the core (#… Apr 5, 2019
__mocks__ feat: extract iOS and Android specific linking files out of the core (#… Apr 5, 2019
flow-typed/npm
jest feat: extract iOS and Android specific linking files out of the core (#… Apr 5, 2019
packages v2.0.0-alpha.13 Apr 19, 2019
scripts chore: use @react-native-community/eslint-config (#205) Mar 5, 2019
types handle haste (#336) Apr 18, 2019
.editorconfig Set up Yarn workspaces and basic repo structure Sep 28, 2018
.eslintignore
.eslintrc.js chore: move shared types to root; moar link styles; bye promiseWaterf… Apr 16, 2019
.flowconfig chore: move shared types to root; moar link styles; bye promiseWaterf… Apr 16, 2019
.gitattributes
.gitignore feat: new `init` command, leave legacy (#241) Apr 2, 2019
.prettierrc.js
CONTRIBUTING.md docs: fix verdaccio command in contributing doc (#219) Mar 12, 2019
LICENSE
README.md feat: refactor install to use link directly instead of spawning it (#180 Feb 19, 2019
babel.config.js chore: move shared types to root; moar link styles; bye promiseWaterf… Apr 16, 2019
jest.config.js
lerna.json
package.json feat: autolink on iOS Apr 16, 2019
yarn.lock

README.md

React Native CLI

Command Line Interface for React Native.

Build Status Version MIT License PRs Welcome

Note: CLI has been extracted from core react-native as a part of "Lean Core" effort. Please read this blog post for more details.

About

This repository contains tools and helpers for React Native projects in form of a CLI. We want to make a couple of things clear for you first:

  • this is a monorepo;
  • there are currently two CLIs: the actual one called @react-native-community/cli that does all the job and global react-native-cli which is used as its proxy;

We know it's confusing, but we're actively working to make this indirection gone.

Creating a new React Native project

To start a new React Native project, you'll need to install a global module react-native-cli and follow instructions there.

We strongly encourage you to only use global react-native-cli for bootstrapping new projects. Use local version for everything else.

Usage in existing React Native project

Once you're inside an existing project, a local react-native binary will be available for you to use. Feel free to use Yarn to call it directly.

Example running start command in terminal:

yarn react-native start
# or if you don't use Yarn:
node ./node_modules/.bin/react-native start

You can also add npm scripts to call it with whichever package manager you use:

{
  "scripts": {
    "start": "react-native start"
  }
}

License

Everything inside this repository is MIT licensed.

You can’t perform that action at this time.