Setting state inside gesture handler is causing significant slow down #2702
Unanswered
MicahDavid
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'm migrating from version 1 to 2. The new v2 gesture handlers are working as expected, but I"m seeing a major slow down. This is occurring as I"m setting state variables on the pan gesture.
Here's the pan Gesture
I'm detecting the pan gesture on the ScrollView, and setting margin top values on the SwipeUpDownModal:
If I take out:
Everything runs smoothly
But, when setting the states, its causing a substantial performance hit and really slowing things down. I didn't see this performance hit in version 1.
Any suggestions on how to get around this performance hit.
Beta Was this translation helpful? Give feedback.
All reactions