diff --git a/src/Gallery.js b/src/Gallery.js index 5cc4835..a6d1fc0 100644 --- a/src/Gallery.js +++ b/src/Gallery.js @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react'; -import { View, ViewPropTypes } from 'react-native'; +import { View, ViewPropTypes, ViewStyle } from 'react-native'; import PropTypes from 'prop-types'; import { createResponder } from './libraries/GestureResponder'; import TransformableImage from './libraries/TransformableImage'; @@ -14,7 +14,7 @@ export default class Gallery extends PureComponent { ...View.propTypes, images: PropTypes.arrayOf(PropTypes.object), initialPage: PropTypes.number, - scrollViewStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, + scrollViewStyle: ViewPropTypes ? ViewPropTypes.style : ViewStyle, pageMargin: PropTypes.number, onPageSelected: PropTypes.func, onPageScrollStateChanged: PropTypes.func,