Replies: 1 comment
|
The simplest way to know when multiple visual pieces are “done” is to drive them from one shared progress value instead of starting separate Example: const progress = useSharedValue(0);
progress.value = withTiming(1, { duration: 300 }, (finished) => {
if (finished) {
runOnJS(onComplete)();
}
});Then derive both card transforms from |
|
Hey. What I'd suggest is using a single If you need to wait for completion of all |
Uh oh!
There was an error while loading. Please reload this page.
Hi, my question is about the flip card example at the link https://docs.swmansion.com/react-native-reanimated/examples/flipCard/. In that example, the withTiming function is used for the animation of both the regularCard and the flippedCard. I would like to detect the situation when both animations have finished in order to start another animation. Is this possible, and if so, how? If it's not possible but I want to keep the same visual effect, is there an example available? Thanks in advance
All reactions