diff --git a/library/TransformableImage.js b/library/TransformableImage.js index 17dd7d3..1bcf7ad 100644 --- a/library/TransformableImage.js +++ b/library/TransformableImage.js @@ -1,7 +1,8 @@ 'use strict'; -import React, { Component, PropTypes } from 'react'; +import React, { Component, } from 'react'; import { Image } from 'react-native'; +import PropTypes from 'prop-types'; import ViewTransformer from 'react-native-view-transformer'; @@ -22,7 +23,6 @@ export default class TransformableImage extends Component { enableTransform: PropTypes.bool, enableScale: PropTypes.bool, enableTranslate: PropTypes.bool, - onSingleTapConfirmed: PropTypes.func, onTransformGestureReleased: PropTypes.func, onViewTransformed: PropTypes.func }; @@ -94,7 +94,6 @@ export default class TransformableImage extends Component { enableResistance={true} onTransformGestureReleased={this.props.onTransformGestureReleased} onViewTransformed={this.props.onViewTransformed} - onSingleTapConfirmed={this.props.onSingleTapConfirmed} maxScale={maxScale} contentAspectRatio={contentAspectRatio} onLayout={this.onLayout.bind(this)} @@ -180,4 +179,4 @@ function sameSource(source, nextSource) { } } return false; -} +} \ No newline at end of file