Skip to content

Commit

Permalink
Update ViewTransformer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danleveille authored Dec 16, 2020
1 parent f7e028b commit 7c75b8b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions library/transform/ViewTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7c75b8b

Please sign in to comment.