From 13891aa1ca99e2f8ba42916548ee76fbf5cc11c5 Mon Sep 17 00:00:00 2001 From: Taras Perun Date: Tue, 3 Dec 2024 14:43:02 +0100 Subject: [PATCH] add worklet --- src/styles/utils/generators/TooltipStyleUtils/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/styles/utils/generators/TooltipStyleUtils/index.ts b/src/styles/utils/generators/TooltipStyleUtils/index.ts index 950ba241570b..dbaf0a7fe5a6 100644 --- a/src/styles/utils/generators/TooltipStyleUtils/index.ts +++ b/src/styles/utils/generators/TooltipStyleUtils/index.ts @@ -265,6 +265,8 @@ const createTooltipStyleUtils: StyleUtilGenerator = ( /** Utility function to create and manage scale animations with React Native Reanimated */ getTooltipAnimatedStyles: (props: TooltipAnimationProps) => { + 'worklet'; + const tooltipHorizontalPadding = spacing.ph2.paddingHorizontal * 2; const tooltipWidth = props.tooltipContentWidth && props.tooltipContentWidth + tooltipHorizontalPadding + 1; const isTooltipSizeReady = tooltipWidth !== undefined && props.tooltipWrapperHeight !== undefined;