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
I've been trying to create a custom exit animation for an <Animated.Text/> component that would also animate out its color. But it doesn't seem to work.
Do Layout Animations support animating color at all?
constCHARACTER_EXITING=useMemo(()=>{constfadeOutUp=newFadeOutUp().build();return(values: ExitAnimationsValues)=>{"worklet";const{ initialValues, animations, callback }=fadeOutUp(values);// Also animate the color of the <Animated.Text/> componentanimations.color=withTiming(exitColor.value,{duration: 200});initialValues.color=color;return{ initialValues, animations, callback };};},[index,exitColor,color]);
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
-
I've been trying to create a custom exit animation for an <Animated.Text/> component that would also animate out its color. But it doesn't seem to work.
Do Layout Animations support animating
color
at all?Beta Was this translation helpful? Give feedback.
All reactions