React-Native-Layout-Tutorial-Series icon indicating copy to clipboard operation
React-Native-Layout-Tutorial-Series copied to clipboard

Swipe delay

Open prabinjoel opened this issue 7 years ago • 2 comments

There is a noticeable delay between swipes.

prabinjoel avatar May 12 '18 21:05 prabinjoel

Hey man, this is due to the Animated.spring function. To resolve this just add a high speed in the speed settings on the config. Ex:

Animated.spring(this.position, {
            toValue: { x: SCREEN_WIDTH + 100, y: gestureState.dy },
            speed: 100
          })

Rakeda avatar Dec 10 '18 01:12 Rakeda

@prabinjoel If you are calling about Tinder UI Swipe, just add {...this.PanResponder.panHandlers} in else statement in renderUsers function.

winocencio avatar Mar 06 '19 00:03 winocencio