react-native-deck-swiper icon indicating copy to clipboard operation
react-native-deck-swiper copied to clipboard

Stuttering performance due to state update

Open johnfrancisgit opened this issue 4 years ago • 1 comments

The swiper has poor performance / stutters when moving because the the panResponder updates the overlay direction in state for the whole swiper component - causing the whole component to be rerendered mid-movement. Can we extrapolate the overlay outside of the swiper component / state?

johnfrancisgit avatar Nov 26 '20 05:11 johnfrancisgit

Moving the overlay outside of the swiper wouldn't improve the overall performance and it would complicate pretty much everything as the pan responder would have to be passed as a reference so that developers could implement their own overlay labels if they wish to.

However, overlay labels are ignored all together if they are not present so they shouldn't affect performance. [reference here]

webraptor avatar Dec 02 '20 18:12 webraptor