This PR aims to fix some unexpected behaviour during FadingTransition.
before
after
Expected behavior:
The component stays in the original position.
Starts the fade-out animation.
Wen component is invisible, changes position to the target position.
Starts the fade-in animation.
In the previous approach, when the delayFunction was not specified (when no one called .delay()), the component jumped to the final position after 50ms instead of waiting until the component became invisible.
Summary
This PR aims to fix some unexpected behaviour during
FadingTransition
.Expected behavior:
In the previous approach, when the
delayFunction
was not specified (when no one called.delay()
), the component jumped to the final position after 50ms instead of waiting until the component became invisible.Test plan
I tested it on the example from https://github.com/software-mansion/react-native-reanimated/pull/6151