作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是我的 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"
}
}
Unable to resolve module
react-native/Libraries/Components/View/ViewStylePropTypes`
最佳答案
您必须 仔细阅读错误信息 .我有同样的问题,我的是:
Unable to resolve module
react-native/Libraries/Components/View/ViewStylePropTypes
from/APP/node_modules/react-native-render-html/src/HTMLUtils.js
: Modulereact-native/Libraries/Components/View/ViewStylePropTypes
does not exist in the Haste module map
react-native-render-html
导致错误,因为它尝试使用 ViewStylePropTypes。
react-native-reanimated
.
ViewStylePropTypes
已从
react-native 0.58
中删除
关于react-native - 无法解析模块 react-native/Libraries/Components/View/ViewStylePropTypes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54695045/
这是我的 package.json: { "name": "BStore", "version": "0.0.1", "private": true, "scripts": {
我是一名优秀的程序员,十分优秀!