I upgraded my latest project to React Native 0.19 and instantly the video no longer works. How can I create a new project with a specific version? I want to init a new project at version 0.18.1. I did some google searches but couldn't find anything about this.
$ react-native init newproject --verbose
I'm guessing I need to add the word @18.1 in there somewhere but can't get that to work.
This should do the trick:
$ react-native init newproject --version react-native@0.18.1
$ react-native init projectname --version 0.56.0
please check this guide
https://facebook.github.io/react-native/docs/getting-started
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:
- devDependencies will be the latest but the dependencies will be the chosen, this will work anyway after...
- 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
This seems to work.
react-native init --version="0.36.0" MyNewApp
Check the comment on this link :).
You can do it like this:
react-native init YourProjectName --version X.XX.X
npx react-native init YOURPROJECTNAME --version X.XX.X