nathvarun / React-Native-Layout-Tutorial-Series

Project Files for Youtube Tutorial Series
MIT License
525 stars 403 forks source link

Swipe delay #2

Open prabinjoel opened 6 years ago

prabinjoel commented 6 years ago

There is a noticeable delay between swipes.

Rakeda commented 5 years ago

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
          })
winocencio commented 5 years ago

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