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} )