Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e45bdc064 | ||
|
|
a4e081e040 | ||
|
|
f47226daa5 |
No files matched your search
@@ -25,28 +25,33 @@
|
||||
|
||||
## :arrow_forward: Usage
|
||||
|
||||
### 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 below 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.62.0` or higher
|
||||
|
||||
```sh
|
||||
npx react-native init MyApp --template react-native-template-typescript
|
||||
```
|
||||
|
||||
### `react-native@0.61.x`
|
||||
### Usage with older versions of React Native
|
||||
|
||||
#### e.g. `react-native@0.62.x`
|
||||
|
||||
```sh
|
||||
npx react-native init MyApp --template react-native-template-typescript@6.3.16
|
||||
npx react-native init MyApp --template react-native-template-typescript@6.4.*
|
||||
```
|
||||
|
||||
### `react-native@0.60.x`
|
||||
See the below table to find out which version of the template to use.
|
||||
|
||||
```sh
|
||||
npx react-native init MyApp --template react-native-template-typescript@6.2.0
|
||||
```
|
||||
#### React Native <=> Template Version
|
||||
|
||||
| React Native | Template |
|
||||
|--- |--- |
|
||||
| 0.63 | 6.5.* |
|
||||
| 0.62 | 6.4.* |
|
||||
| 0.61 | 6.3.* |
|
||||
| 0.60 | 6.2.* |
|
||||
|
||||
### 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 below 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
|
||||
|
||||
|
||||
Vendored
+2
-1
@@ -166,7 +166,8 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"@react-native-community/eslint-config": "^1.1.0",
|
||||
"@types/jest": "^25.2.3",
|
||||
"@types/react-native": "^0.62.0",
|
||||
"@types/react-test-renderer": "16.13.1",
|
||||
"@types/react-test-renderer": "^16.9.2",
|
||||
"@typescript-eslint/eslint-plugin": "^2.27.0",
|
||||
"@typescript-eslint/parser": "^2.27.0",
|
||||
"babel-jest": "^25.1.0",
|
||||
|
||||
Reference in new issue
Block a user