Skip to content

Commit

Permalink
add worklet
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Dec 3, 2024
1 parent 4266f6a commit 13891aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/styles/utils/generators/TooltipStyleUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ const createTooltipStyleUtils: StyleUtilGenerator<GetTooltipStylesStyleUtil> = (

/** 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;
Expand Down

0 comments on commit 13891aa

Please sign in to comment.