software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.87k stars 1.3k forks source link

Fix FadingTransition #6183

Closed piaskowyk closed 3 months ago

piaskowyk commented 3 months ago

Summary

This PR aims to fix some unexpected behaviour during FadingTransition.

before after

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