diff --git a/library/transform/ViewTransformer.js b/library/transform/ViewTransformer.js index f97ab00..c367130 100644 --- a/library/transform/ViewTransformer.js +++ b/library/transform/ViewTransformer.js @@ -7,7 +7,7 @@ import ReactNative, { Easing, NativeModules } from 'react-native'; - +import PropTypes from 'prop-types'; import {createResponder} from 'react-native-gesture-responder'; import Scroller from 'react-native-scroller'; import {Rect, Transform, transformedRect, availableTranslateSpace, fitCenterRect, alignedRect, getTransform} from './TransformUtils'; @@ -421,36 +421,36 @@ ViewTransformer.propTypes = { /** * Use false to disable transform. Default is true. */ - enableTransform: React.PropTypes.bool, + enableTransform: PropTypes.bool, /** * Use false to disable scaling. Default is true. */ - enableScale: React.PropTypes.bool, + enableScale: PropTypes.bool, /** * Use false to disable translateX/translateY. Default is true. */ - enableTranslate: React.PropTypes.bool, + enableTranslate: PropTypes.bool, /** * Default is 20 */ - maxOverScrollDistance: React.PropTypes.number, + maxOverScrollDistance: PropTypes.number, - maxScale: React.PropTypes.number, - contentAspectRatio: React.PropTypes.number, + maxScale: PropTypes.number, + contentAspectRatio: PropTypes.number, /** * Use true to enable resistance effect on over pulling. Default is false. */ - enableResistance: React.PropTypes.bool, + enableResistance: PropTypes.bool, - onViewTransformed: React.PropTypes.func, + onViewTransformed: PropTypes.func, - onTransformGestureReleased: React.PropTypes.func, + onTransformGestureReleased: PropTypes.func, - onSingleTapConfirmed: React.PropTypes.func + onSingleTapConfirmed: PropTypes.func }; ViewTransformer.defaultProps = { maxOverScrollDistance: 20,