undefined is not an object(evaluating 'ViewPropTypes.style')

说法一:转载 https://github.com/facebook/react-native/issues/14032

for those that have same issue after install this package try this.

in file node_modules/react-native-maps/lib/components/MapView.js

in line 63

replace : style: ViewPropTypes.style
for : style: PropTypes.style

it fix my issue :)


https://github.com/GeekyAnts/NativeBase/issues/851

@shivrajkumar
These are my current versions and I'm still having the issue:

"react": "15.4.2",
"native-base": "2.1.0",
"react-native": "0.41.1",
"react-native-router-flux": "3.37.0",

I deleted node_modules and reinstalled, deleted the app from the simulator, cleared DerivedData from xcode, and npm start -- --reset-cache. I don't know what I'm missing



说法二:http://coding.imooc.com/learn/questiondetail/13895.html

解决问题的地方:

https://github.com/facebook/react-native/issues/14032

看完之后,解决了问题。

解决方式如下:

找到node_modules目录下的react-native-scrollable-tab-view,将出问题的js文件中的

ViewPropTypes.style 改为 View.propTypes.style




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值