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.
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.
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 .
This should do the trick:
$ react-native init newproject --version X.XX.X
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