From 4d356ce4abf9da546b8152f1b14c609c06d59e8d Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Wed, 29 Jan 2025 16:50:33 +0100 Subject: [PATCH] Fix slow animation --- .../reanimated/apple/native/PlatformDepMethodsHolderImpl.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm b/packages/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm index 7c3da3c3ca87..e1464d7e576a 100644 --- a/packages/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm +++ b/packages/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm @@ -93,9 +93,8 @@ RequestRenderFunction makeRequestRender(REANodesManager *nodesManager) // TODO macOS targetTimestamp isn't available on macOS auto targetTimestamp = displayLink.timestamp + displayLink.duration; #endif - double frameTimestamp = - - (targetTimestamp) * 1000; + const double frameTimestamp = + calculateTimestampWithSlowAnimations(targetTimestamp) * 1000; onRender(frameTimestamp); }]; };