说法一:转载 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