I basically want to init a react-native project with [email protected] and [email protected] because dependency problems. However react-native command only allows me to specify react-native version:
react-native init sample --version [email protected]
This command not works:
react-native init diskful --version [email protected] --version [email protected]
This, too:
react-native init diskful --version [email protected] [email protected]
And this, too:
react-native init diskful --version [email protected] [email protected]
Install globally [email protected] or [email protected] does not affect. Please, someone help me!
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.
To update your React version, install the latest versions of the react and react-dom packages by running npm install react@latest react-dom@latest . If you use create-react-app , also update the version of react-scripts . Copied! The command will update the versions of the react-related packages.
Create a project :
react-native init MyNewApp --version 0.45.0
If you want do change version then try with this:
npm install --save [email protected]
npm install --save [email protected]
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