To react

I updated my latest project to React Native 0.19, and instantly the video no longer works. How to create a new project with a specific version? I want to start a new project in version 0.18.1. I did some google searches but found nothing about it.

$ react-native init newproject --verbose

I guess I need to add the word @ 18.1 somewhere, but I can't get this to work.

+30
source share
5 answers

This should do the trick:

$ react-native init newproject --version react-native@0.18.1
+62
source
$ react-native init --version 0.56.0 projectname 
+12
source

.

react-native init --version="0.36.0" MyNewApp

:).

+3

0.60.0 0.60.0 :

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

2 :

  1. devDependencies will be the last, but dependencies will be selected, this will work anyway after ...
  2. You will get an react-native/libraries/NewAppScreenerror message react-native/libraries/NewAppScreen, go to App.tsxand replace it all with something simple, for example <View style={{flex:1,backgroundColor:'orange'}}>so that you can see it works
+3
source

You can do it like this:

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

enter image description here

0
source

Source: https://habr.com/ru/post/1626717/


All Articles