Skip to content

Flat list item not clickable  #11

@steavenb

Description

@steavenb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions