Closed jcyusicastro closed 4 years ago
Yes. Get a ref to the tooltip and call the toggle https://github.com/AndreiCalazans/rn-tooltip/blob/master/src/Tooltip.js#L57
`<Tooltip // eslint-disable-next-line no-return-assign ref={(ref) => (tooltipRef.current = ref)} height={null} width={320} withOverlay={false} pointerStyle={Platform.OS === 'ios' ? styles.pointerStyleIos : styles.pointerStyleAndroid} containerStyle={styles.containerStyle} popover={ <WhatIsBlastTooltip onPressButtonOK={() => tooltipRef.current.toggleTooltip()} /> } backgroundColor={COLORS.white}
`
Is there a way to close the tooltip using a function inside the popOver component? I want to close the tooltip after a press a button inside it.