After starting react-native init reactApp, a warning appears npm WARN react-native@0.39.2 requires a peer of react@~15.4.0-rc.4 but none was installed. The design is successful, although here is my package.json after the build.
{
"name": "reactApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "15.4.1",
"react-native": "0.39.2"
},
"devDependencies": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "18.0.0",
"react-test-renderer": "15.4.1"
},
"jest": {
"preset": "react-native"
}
}
This is problem? Should I change the reaction version and then run npm install? I am completely new to reacting / responding, so any advice would be appreciated as the best ways to prevent mistakes in the future.
Thank!
source
share