From 4bea63faf778222cb46d5a53d2b7dc7d1173fe5a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 23 Jun 2025 11:23:52 -0500 Subject: [PATCH] Fix animation --- src/components/Tooltip/index.web.tsx | 41 ++-------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/src/components/Tooltip/index.web.tsx b/src/components/Tooltip/index.web.tsx index 8093e6f27b..4ed1585bf2 100644 --- a/src/components/Tooltip/index.web.tsx +++ b/src/components/Tooltip/index.web.tsx @@ -1,4 +1,4 @@ -import {Children, createContext, useContext, useMemo, useState} from 'react' +import {Children, createContext, useContext, useMemo} from 'react' import {View} from 'react-native' import {Popover} from 'radix-ui' @@ -58,13 +58,6 @@ export function Content({ }) { const t = useTheme() const {position} = useContext(TooltipContext) - const [bubbleMeasurements, setBubbleMeasurements] = useState< - | { - width: number - height: number - } - | undefined - >(undefined) return ( - { - setBubbleMeasurements({ - width: Math.ceil(e.nativeEvent.layout.width), - height: Math.ceil(e.nativeEvent.layout.height), - }) - }}> - {children} - + {children} )