diff --git a/src/index.js b/src/index.js index 94509495..c90b9fdd 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,8 @@ import { TouchableOpacity, ViewPagerAndroid, Platform, - ActivityIndicator + ActivityIndicator, + ViewPropTypes } from 'react-native' const { width, height } = Dimensions.get('window') @@ -100,7 +101,7 @@ export default class extends Component { static propTypes = { horizontal: PropTypes.bool, children: PropTypes.node.isRequired, - style: View.propTypes.style, + style: ViewPropTypes.style, pagingEnabled: PropTypes.bool, showsHorizontalScrollIndicator: PropTypes.bool, showsVerticalScrollIndicator: PropTypes.bool,