AndreiCalazans / rn-tooltip

A <Tooltip /> component for React Native
MIT License
328 stars 75 forks source link

Click on presable elements in content not working on Android #103

Open raulangeleh opened 9 months ago

raulangeleh commented 9 months ago

Description

I want my tooltip to have some buttons in the content. To act like a tutorial functionality of a part of my app. So my content has a title and a "next" and "close" button. The issue here is that when I click those touchableOpacities in the content on android it is triggering the onClose function even when I add the property closeOnContentInteraction ={false} on Android. If I run the same code on a iOS device the touchableOpacities work fine. Does any one know why is this? Can we work on a fix for this?

Tries

I have tried add a big z-index to the buttons and the content but it does not triggers the onpress action of the touchableopacieties from the content. I have tried also add the onClose... properties to do not trigger the onClose function but only when I add the closeOnBackgroundInteraction stops triggering the onClose function of the tooltip but it still not trigger the onPress function of my TouchableOpacity.

Version

"react-native-walkthrough-tooltip": "^1.6.0"
"react": "18.0.0"
"react-native": "0.69.7"