Skip to content

Commit

Permalink
Merge pull request #75 from react-native-community/readme-cli-clarifi…
Browse files Browse the repository at this point in the history
…cation

added further notes on the legacy CLI
  • Loading branch information
radko93 authored Sep 25, 2019
2 parents f6a43f7 + 21d749e commit 557e791
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@

## :arrow_forward: Usage

### React Native >= 0.60
> `react-native@0.60` or higher
```sh
npx react-native init MyApp --template react-native-template-typescript
```

> You may need to remove the globally installed **react-native-cli** (`npm uninstall -g react-native-cli`), for the above command to work. The global **react-native-cli** is deprecated, and no longer supported.
### Note on the legacy CLI
There seems to be quite some confusion about the legacy CLI. This template only works with the new CLI. Make sure you have uninstalled the legacy `react-native-cli` first (`npm uninstall -g react-native-cli`), for the above command to work. If you wish to not use `npx`, you can also install the new CLI globally (`npm i -g @react-native-community/cli` or `yarn global add @react-native-community/cli`).

Further information can be found here: https://github.com/react-native-community/cli#about

## :computer: Contributing

Expand Down

0 comments on commit 557e791

Please sign in to comment.