Open ajimenezdev opened 5 years ago
@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
+1
+1
collapsable not helps.
"react": "16.6.3", "react-native": "0.58.0", "react-native-tooltips": "^0.0.10"
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.
+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.
@prscX @StevenMasini @Dmitrylolo I created a PR that fixes this issue. #29
Is this issue solved?
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?