checkPropTypes已移至单独的包中。不再支持访问React.checkPropTypes

时间:2017-11-21 13:06:31

标签: javascript node.js reactjs react-native react-proptypes

当我使用的版本高于反应的15.0.0时,我的应用程序中有这三个警告.......

warning in the console
warning on the screen

我不知道如何解决这个问题? 我试图这样做: npm install --save prop-types 但它没有改变任何东西..........
在这种状态下,这些警告很重要吗?

这是我的package.json的副本:

{
  "name": "mobileMM",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "babel-eslint": "^8.0.2",
    "babel-preset-flow": "^6.23.0",
    "eslint": "^4.11.0",
    "eslint-config-airbnb": "^16.0.0",
    "eslint-plugin-import": "^2.8.0",
    "eslint-plugin-jsx-a11y": "^6.0.2",
    "eslint-plugin-react": "^7.4.0",
    "flow-bin": "0.49.1",
    "jest-expo": "^21.0.2",
    "prettier-eslint": "^8.2.1",
    "react-native-scripts": "1.5.0",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js --watch"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "expo": "^21.0.3",
    "jshint": "^2.9.5",
    "prop-types": "^15.6.0",
    "react": "16.0.0-alpha.12",
    "react-native": "^0.48.4",
    "react-native-checkbox": "^2.0.0",
    "react-native-elements": "^0.17.0",
    "react-native-keyboard-aware-scroll-view": "^0.4.1",
    "react-native-modal-datetime-picker": "^4.13.0",
    "react-native-modal-dropdown": "^0.5.0",
    "react-native-router-flux": "^4.0.0-beta.23",
    "react-native-vector-icons": "^4.4.2",
    "react-navigation": "^1.0.0-beta.19"
  }
}

0 个答案:

没有答案