Skip to content

Commit 7ba4e4a

Browse files
committed
Fix pass this
1 parent 5b9d0b5 commit 7ba4e4a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/components/ImageViewer/Image.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ var ImageComponent = /** @class */ (function (_super) {
232232
return <Animated.View style={footerAnim}>{innerComponent}</Animated.View>;
233233
};
234234
_this._gestureDoubleTap = function () { return Gesture.Tap().maxDuration(250).numberOfTaps(2).onStart(function (evt) {
235-
_this._debug('_gestureDoubleTap', 'onStart', _this);
235+
_this._debug('_gestureDoubleTap', 'onStart');
236236
_this._handleImageZoomInOut(evt);
237+
_this._debug('_gestureDoubleTap', 'this._handleImageZoomInOut', '-> ok');
237238
}); };
238239
_this._gesturePinch = function () { return Gesture.Pinch().onEnd(function (evt) {
239240
_this._debug('_gesturePinch', 'onEnd');

src/Image.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ class ImageComponent extends React.Component<ImageComponentProps, ImageComponent
369369
};
370370

371371
private _gestureDoubleTap = () => Gesture.Tap().maxDuration(250).numberOfTaps(2).onStart((evt) => {
372-
this._debug('_gestureDoubleTap', 'onStart', this);
372+
this._debug('_gestureDoubleTap', 'onStart');
373373
this._handleImageZoomInOut(evt);
374+
this._debug('_gestureDoubleTap', 'this._handleImageZoomInOut', '-> ok');
374375
});
375376
private _gesturePinch = () => Gesture.Pinch().onEnd((evt) => {
376377
this._debug('_gesturePinch', 'onEnd');

0 commit comments

Comments
 (0)