小编Roc*_*omo的帖子

无法解析模块react-native / Libraries / Components / View / ViewStylePropTypes

这是我的package.json:

{
  "name": "BStore",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "expo": "^32.0.5",
    "native-base": "^2.11.0",
    "prop-types": "^15.7.2",
    "react": "16.6.3",
    "react-native": "0.58.3",
    "react-native-gesture-handler": "^1.0.15",
    "react-native-paper": "^2.11.0",
    "react-navigation": "^3.0.9",
    "react-navigation-material-bottom-tabs": "^1.0.0"
  },
  "devDependencies": {
    "babel-core": "7.0.0-bridge.0",
    "babel-jest": "24.1.0",
    "jest": "24.1.0",
    "metro-react-native-babel-preset": "0.51.1",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }    
}
Run Code Online (Sandbox Code Playgroud)

我收到此错误Unable to resolve modulereact-native / Libraries / Components / View / ViewStylePropTypes`

有什么想法可以解决这个问题吗?

react-native

9
推荐指数
1
解决办法
4292
查看次数

标签 统计

react-native ×1