rn-tooltip icon indicating copy to clipboard operation
rn-tooltip copied to clipboard

toggle tooltip programmatically

Open fabioguarrasi opened this issue 1 year ago • 1 comments

Hi team,

is there a way to toggle the tooltip programmatically?

fabioguarrasi avatar Dec 08 '23 09:12 fabioguarrasi

You can put the component to ref and call this

const tooltipRef = useRef(null);

<Tooltip
      ref={tooltipRef}
      ...the rest of you code

call this on your function

tooltipRef.current.toggleTooltip();

crusherblack avatar Feb 17 '24 16:02 crusherblack