We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 030d0b1 commit 5e9ecc2Copy full SHA for 5e9ecc2
lib/src/InteractableView.js
@@ -28,15 +28,15 @@ class WrappedAnimatedInteractableView extends Component {
28
constructor(props) {
29
super(props);
30
if (this.props.animatedValueX || this.props.animatedValueY) {
31
- this._animatedEvent = Animated.event(
+ this._animatedEvent = (event, gestureState) => Animated.event(
32
[{
33
nativeEvent: {
34
x: this.props.animatedValueX,
35
- y: this.props.animatedValueY
+ y: event.nativeEvent.y > 0 ? this.props.animatedValueY : null
36
}
37
}],
38
{ useNativeDriver: !!this.props.animatedNativeDriver }
39
- );
+ )(event, gestureState);
40
41
42
0 commit comments