You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I want to enable/disable a button (RectButton, TouchableOpacity, ...rest) based on a shared value, what would be the best practice in this scenario?
For added context, the shared value orchestrates the animation of a draggable item that is translated along the y-axis. Then, based on the position in the y-axis, the button must be enabled or disabled.
I'm aware of useAnimatedProps, but I'm uncertain if the enabled prop is suitable to be animated like that.
Thanks in advance and appreciate this wonderful library!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I want to enable/disable a button (RectButton, TouchableOpacity, ...rest) based on a shared value, what would be the best practice in this scenario?
For added context, the shared value orchestrates the animation of a draggable item that is translated along the y-axis. Then, based on the position in the y-axis, the button must be enabled or disabled.
I'm aware of useAnimatedProps, but I'm uncertain if the
enabled
prop is suitable to be animated like that.Thanks in advance and appreciate this wonderful library!
Beta Was this translation helpful? Give feedback.
All reactions