react-native-tooltips icon indicating copy to clipboard operation
react-native-tooltips copied to clipboard

Tooltip not shown on Android

Open ajimenezdev opened this issue 6 years ago • 7 comments

I have a react-native app working on Android and IOS. I've included the react-native-tooltip library.

It is working perfectly on iOs but on Android the tooltip it is not displayed. I've been digging around the library and it reaches the line with tooltip.show(); without throwing any errors. But the tooltip it is just simply not displayed. This is the code for the tooltip. <RNTooltips text={'Help message'} visible={this.state.tooltipVisible} reference={this.tooltipRef} tintColor='#222222' textColor='#FFFFFF' shadow={false} corner={5} arrow={false} autoHide={true} duration={2} clickToHide={true} position={1} align={1} gravity={4} />

Any idea why this is happening?

ajimenezdev avatar Sep 14 '18 15:09 ajimenezdev

@AJM88 Yes we are aware of this issue for Android. We are currently working on a fix #14

For now you can probably try the solution suggested by @prscX and use the collapsable property on the view you want the tooltip to appear on.

See the documentation from react-native

StevenMasini avatar Sep 16 '18 04:09 StevenMasini

+1

kiyos88 avatar Oct 29 '18 18:10 kiyos88

+1 collapsable not helps. "react": "16.6.3", "react-native": "0.58.0", "react-native-tooltips": "^0.0.10"

Dmitrylolo avatar Jan 31 '19 08:01 Dmitrylolo

Yeah this problem is hard to fix. From what I recall, there is an issue with the ref generated on the javascript side and the component-id when it lands on the native side on Android.

We were discussing this issue today at my company. I wish I was more knowledgable about Android. I think this issue would be easy to fix for an Android engineer with React Native knowledge.

StevenMasini avatar Feb 01 '19 09:02 StevenMasini

+1 This is a really great library, but it would be better if it worked on Android as well!

I've investigated into the issue as well, but to no prevail.

hamzahayat avatar Feb 08 '19 01:02 hamzahayat

@prscX @StevenMasini @Dmitrylolo I created a PR that fixes this issue. #29

hamzahayat avatar Feb 08 '19 01:02 hamzahayat

Is this issue solved?

zeallat avatar Aug 27 '20 09:08 zeallat