I type the command to create React Native project with typescript.
npx react-native init MyApp --template react-native-template-typescript
package.json
"react-native": "0.63.2"
I want to create 0.62.2 with typescript so I try the command:
npx react-native init MyApp --version 0.62.2 --template react-native-template-typescript
package.json
"react-native": "0.63.0"
It is 0.63.0 not 0.62.2
Why I can't create 0.62.2 with typescript ?
For typescript template, the version of react native depends on the react-native-template-typescript version, for example:
Therefore if you want to install version [email protected], you need to apply the command like this:
npx react-native init AwesomeTSProject --template [email protected]
more info: react-native-template-typescript releases
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With