software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.12k stars 980 forks source link

Pan gesture handler create during panning when working with event.nativeEvent.x #622

Closed Neha0595 closed 4 years ago

Neha0595 commented 5 years ago

In Pan gesture handler if i use event.native.x in onGestureEvent then the panning is not smooth.It raises jumps. My code is : this.postCoverPosition = new Animated.Value(0); this.onPostCoverGestureEvent = Animated.event( [ { nativeEvent: { x: this.postCoverPosition, }, }, ], );

I attach the gif of its also ![Uploading pangesture.gif…]()

Neha0595 commented 5 years ago

Here is the link : https://vimeo.com/339985279

jakub-gonet commented 4 years ago

This issue was not active for some time so I'm closing it. If you need further help please reply.