enesozturk / react-native-instagram

Instagram iOS page transitions implementation with FlashList and Reanimated
https://twitter.com/enesozturkdev/status/1549049433148403712
314 stars 16 forks source link

fix: always reset startX and startY values #4

Open vbylen opened 1 year ago

vbylen commented 1 year ago

Previously the start values would only be reset on a successful swipe to dismiss gesture. This would lead to a small bug where - when the swipe to dismiss gesture was canceled and retried - the screen would jerk to the previous values instead of start off from a fresh starting position. This fixes that.