React Native init specific version

Version and Template

Currently, I'm having problems with the 0.60.0 version so for doing this with version and typescript it goes like this:

react-native init ProjectName --version="0.59.9" --template="typescript"

This has 2 unwanted side effects:

  1. devDependencies will be the latest but the dependencies will be the chosen, this will work anyway after...
  2. You will get a react-native/libraries/NewAppScreen error, go to App.tsx and replace all of that for something simple like a <View style={{flex:1,backgroundColor:'orange'}}> so you can see it running

$ react-native init projectname --version 0.56.0 

please check this guide https://reactnative.dev/docs/environment-setup enter image description here


This should do the trick:

$ react-native init newproject --version X.XX.X

You can do it like this:

react-native init YourProjectName --version X.XX.X

enter image description here