How can I stop updating a style? #2854
Unanswered
Only-IceSoul
asked this question in
Q&A
Replies: 2 comments
-
where the style listener come from ? you'd better use the hook useAnimatedStyle . by the way , if you wanna restrict the animation value to a range, you can use interpolate exported from reanimated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
style listener is what the aninimatedStyle should be . The interpolation is too slow, it is preferable to make a condition. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Being updated every time a value changes slows down the app too much in a list
It would be nice if it only updates when it is between a range
Actually I don't know what slows down the application, but when I return an empty style {} it improves performance despite doing calculations inside
Beta Was this translation helpful? Give feedback.
All reactions