引用react-native-scrollable-tab-view 之后Cannot read property 'style' of undefined问题

先看一下你的react-native-scrollable-tab-view 是什么版本的额,依赖的react-native是什么版本,

那么降低react-native-scrollable-tab-view 的版本,要么升级react-native可以解决这个问题


具体原因是因为,原来是这样的,

View.propTypes.style

现在变成这样了

const { ViewPropTypes } = ReactNative = require('react-native');

ViewPropTypes.style


猜你喜欢

转载自blog.csdn.net/s8460049/article/details/73331179