Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b71dc7e3c4 | ||
|
|
0f552603cb | ||
|
|
0768a6257c |
No files matched your search
@@ -25,23 +25,23 @@
|
|||||||
|
|
||||||
## :arrow_forward: Usage
|
## :arrow_forward: Usage
|
||||||
|
|
||||||
> `react-native@0.61.0` or higher
|
### 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
|
||||||
|
|
||||||
|
### `react-native@0.61.0` or higher
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npx react-native init MyApp --template react-native-template-typescript
|
npx react-native init MyApp --template react-native-template-typescript
|
||||||
```
|
```
|
||||||
|
|
||||||
> `react-native@0.60.x`
|
### `react-native@0.60.x`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npx react-native init MyApp --template react-native-template-typescript@6.2.0
|
npx react-native init MyApp --template react-native-template-typescript@6.2.0
|
||||||
```
|
```
|
||||||
|
|
||||||
### 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
|
## :computer: Contributing
|
||||||
|
|
||||||
Contributions are very welcome. Please check out the [contributing document](CONTRIBUTING.md).
|
Contributions are very welcome. Please check out the [contributing document](CONTRIBUTING.md).
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "16.9.0",
|
"react": "16.9.0",
|
||||||
"react-native": "0.61.4"
|
"react-native": "0.61.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.2",
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"metro-react-native-babel-preset": "^0.56.0",
|
"metro-react-native-babel-preset": "^0.56.0",
|
||||||
"react-test-renderer": "16.9.0",
|
"react-test-renderer": "16.9.0",
|
||||||
"typescript": "^3.6.3"
|
"typescript": "^3.7.3"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "react-native",
|
"preset": "react-native",
|
||||||
|
|||||||
Reference in new issue
Block a user