How to specify easing in a scrollTo call? #5424
Unanswered
henrymoulton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got an Animated FlashList that I want to call
scrollTo(horizontalSVRef, newPosX, 0, true);
inside of aonFinalize
or aGesture.Pan()
is the best way to specify how the "easing" of that scroll? I've tried using thedecelerationRate
of the FlashList's props but that doesn't seem to work.In my head I sort of want to be able to do
scrollTo(horizontalSVRef, withSpring(newPosX), 0, true)
but I'm aware that won't work these values only takes a number.I also looked at
horizontalSVRef.current?.scrollToIndex({ index: 4, animated: true });
but think I have the same issueBeta Was this translation helpful? Give feedback.
All reactions