I want to use withSequence
with a direct value as the first value, using the code bellow caused the app to crash.
animatedValue.value = withSequence(startValue, withTiming(endValue));
The bellow code seems to work perfectly but in my case, it doesn't help using the startValue
inside withTiming
.
animatedValue.value = withSequence(withTiming(startValue, {duration: 0}), withTiming(endValue));