Wheel scroll picker, data length over 100, usage of useDerivedValue, interpolate, and useAnimatedStyle is causing extreme scroll performance issues #3681
Unanswered
lukasjaronis
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version: 2.11.0
The below snippet is what is causing major performance issues when scrolling.
As soon as I apply the
childViewStyle
on each item based on itsindex
, anything over 100 items in data length, scrolling becomes extremely laggy and unbearable for the user.So my main question is, is there anything else I can do to apply these animated styles? Perhaps I am doing something wrong? Advice would be helpful.
The first screen (you will see it switch) is data length of 99. The next screen is data length of 999. You can clearly tell a difference in performance, and it's just simply not smooth at all.
Screen.Recording.2022-10-15.at.3.59.36.PM.mov
Beta Was this translation helpful? Give feedback.
All reactions