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

Flat list item not clickable #11

Open
steavenb opened this issue Jul 11, 2022 · 0 comments
Open

Flat list item not clickable #11

steavenb opened this issue Jul 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@steavenb
Copy link

While attempting to display an overlay on a flat list item, I was not able get the click through working. Setting clickthroughHighlight to false lets us trigger the onDismiss method. But if set to true, both the highlighted and non-highlighted part are non-clickable. I did not place the HighlightOverlay inside the parent ScrollView which holds the Flatlist since there were positioning issues. Placing it outside let me position it perfectly.

In the HighlightOverlay.tsx file, if I change the parent View's pointerEvents to "none", it allows click of all components beneath the overlay. But this would mean that onDismiss will not be called.

Is there something that I am missing?

@Charanor Charanor added the bug Something isn't working label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants