Skip to content

hitSlop prop not working on Android #1116

@dhruvbhatia

Description

@dhruvbhatia

Hi there, thanks for building and maintaining this great library. I'm hoping to get some help with an Android specific issue.

I am running Expo 53 / RN 0.79.4 and have created a standard MenuView like this:

<MenuView
  style={{
    backgroundColor: "red",
  }}
  hitSlop={{ top: 250, bottom: 250, left: 250, right: 250 }} // Increase hit area for easier access
... // my other options - not relevant
>
  <Icon icon="more" size={18} />
</MenuView>

This renders a menu icon with a red background. On iOS, if I tap outside the red box, the UIMenu triggers (due to my hitSlop config), however on Android only taps within the red box itself open the PopupMenu. Hence the hitSlop property doesn't seem to be taking effect on Android.

I'm not sure wehter this a bug, a known limitation with Android, or just something funky with my Expo / RN versions. Help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions