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

Android only - Tooltip rendered twice, with the overlapping tooltip rendered at the wrong position #164

Open
arjuntare opened this issue Aug 24, 2022 · 7 comments

Comments

@arjuntare
Copy link

I am trying to display a tooltip on an item in a horizontally scrollable Carousel (react-native-snap-carousel), which is inside a vertical FlatList. I make sure to scroll the FlatList item into view before setting the tooltip visibility.

The issue is that there are two tooltips displayed, one as expected and one at the bottom of the screen, which overlaps the correct tooltip.

This is an Android specific issue, I have tested on iOS and it works as expected.

Screenshot_1661322642

@schlafnie
Copy link

have you tried setting showChildInTooltip to false?

@richardkuiper
Copy link

have you tried setting showChildInTooltip to false?

Amazing! I was having the same issue and this resolved it. Thank you @schlafnie

@arjuntare
Copy link
Author

arjuntare commented Aug 30, 2022

have you tried setting showChildInTooltip to false?

Thank you for the suggestion, but that will not highlight the element then, right?

@hamam99
Copy link

hamam99 commented Oct 11, 2022

have the same issue too

@hamam99
Copy link

hamam99 commented Oct 11, 2022

Try to add this code in component Tooltip
topAdjustment={Platform.OS === 'android' ? -StatusBar.currentHeight : 0}

@huynhducduy
Copy link

I still have the same issue, @arjuntare did you managed to fix the problem yet?

@arjuntare
Copy link
Author

I still have the same issue, @arjuntare did you managed to fix the problem yet?

Hi @huynhducduy I wasn't able to get it working. Ended up showing the tooltip on the entire carousel instead of on the carousel's child item.

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

5 participants