@@ -20,6 +20,7 @@ export default class TransformableImage extends PureComponent {
20
20
enableTranslate : PropTypes . bool ,
21
21
onTransformGestureReleased : PropTypes . func ,
22
22
onViewTransformed : PropTypes . func ,
23
+ onTransformStart : PropTypes . func ,
23
24
imageComponent : PropTypes . func ,
24
25
resizeMode : PropTypes . string ,
25
26
errorComponent : PropTypes . func ,
@@ -145,7 +146,7 @@ export default class TransformableImage extends PureComponent {
145
146
146
147
render ( ) {
147
148
const { imageDimensions, viewWidth, viewHeight, error, keyAccumulator, imageLoaded } = this . state ;
148
- const { style, image, imageComponent, resizeMode, enableTransform, enableScale, enableTranslate, onTransformGestureReleased, onViewTransformed, pageId, maxScale } = this . props ;
149
+ const { style, image, imageComponent, resizeMode, enableTransform, enableScale, enableTranslate, onTransformGestureReleased, onViewTransformed, pageId, maxScale, onTransformStart } = this . props ;
149
150
150
151
let contentAspectRatio ;
151
152
let width , height ; // imageDimensions
@@ -183,6 +184,7 @@ export default class TransformableImage extends PureComponent {
183
184
enableResistance = { true }
184
185
onTransformGestureReleased = { onTransformGestureReleased }
185
186
onViewTransformed = { onViewTransformed }
187
+ onTransformStart = { onTransformStart }
186
188
maxScale = { maxScale }
187
189
pageId = { pageId }
188
190
contentAspectRatio = { contentAspectRatio }
0 commit comments