Action-native init specify reaction version and reaction-native version

Basically, I want an initiative project with an initiative to respond to reaction @ 15.6.0 and react-native @ 0.45.0, because there are problems with dependency. However, the response-native command allows me to specify the version of native-native:

react-native init sample --version react-native@0.45.0 

This command does not work:

 react-native init diskful --version react-native@0.45.0 --version react@15.6.0 

It is too:

 react-native init diskful --version react-native@0.45.0 react@15.6.0 

And this too:

 react-native init diskful --version react@15.6.0 react-native@0.45.0 

Install globally response@15.6.0 or response-native@0.45.0 not affected. Please help me!

+5
source share
3 answers

Create a project:

 react-native init MyNewApp --version 0.45.0 

If you want to change the version, try with this:

 npm install --save react-native@0.44.0 npm install --save react@16.0.0-alpha.6 
+3
source
  • delete node_modules folder
  • Edit Package.json

    "dependencies": {"react": "15.6.0", "react-native": "0.45.0",},

  • run the command 'npm install'
+1
source

You can run the application using

 react-native init --version="0.45.0" yourapp, 

If further changes are needed, make changes to package.json in the reactive or reactive fields and simply run npm install

0
source

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


All Articles