Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip not shown on Android #15

Open
ajimenezdev opened this issue Sep 14, 2018 · 7 comments
Open

Tooltip not shown on Android #15

ajimenezdev opened this issue Sep 14, 2018 · 7 comments

Comments

@ajimenezdev
Copy link

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?

@StevenMasini
Copy link

@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

@kiyos88
Copy link

kiyos88 commented Oct 29, 2018

+1

@Dmitrylolo
Copy link

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

@StevenMasini
Copy link

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.

@hamzahayat
Copy link

+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
Copy link

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

@zeallat
Copy link

zeallat commented Aug 27, 2020

Is this issue solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants