From af70a8a9e04d93554251e747bc634ce84318d515 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 23 Jun 2025 14:46:48 +0300 Subject: [PATCH] add animation --- src/components/Tooltip/index.tsx | 85 +++++++++++++++++--------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsx index e4524fbf0f..9e19612157 100644 --- a/src/components/Tooltip/index.tsx +++ b/src/components/Tooltip/index.tsx @@ -7,6 +7,7 @@ import { useState, } from 'react' import {Dimensions, View} from 'react-native' +import Animated, {Easing, ZoomIn} from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {atoms as a, useTheme} from '#/alf' @@ -293,48 +294,50 @@ function Bubble({ left: coords.left, }, ]}> - - + { - setBubbleMeasurements({ - width: e.nativeEvent.layout.width, - height: e.nativeEvent.layout.height, - }) - }}> - {children} - + ]} + /> + { + setBubbleMeasurements({ + width: e.nativeEvent.layout.width, + height: e.nativeEvent.layout.height, + }) + }}> + {children} + + ) }