Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native init specific version

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.

like image 837
Hasen Avatar asked Jan 31 '16 04:01

Hasen


People also ask

How do I create a specific version project in React Native?

You could use the initialized project, delete the node_modules, then go into the package. json file and specify the version you want, and run npm insall again.

How install React Native library specific version?

You can install a particular version of the library by running npm install <library-name>@<version-number> , for example: npm install @react-native-community/netinfo@^2.0. 0 .


1 Answers

This should do the trick:

$ react-native init newproject --version X.XX.X 
like image 172
Bataleon Avatar answered Sep 23 '22 08:09

Bataleon