Skip to content

Pressable within MenuView is not pressable #1183

@arnekolja

Description

@arnekolja

Is there any way to make Pressables that are nested within a MenuView actually pressable? It seems like the onPress event is not propagated at all when nested inside.

Situation:

const onPressAction = () => {
    // fired on long press
};

const onPressPressable = () => {
    // never fired
};

<MenuView
    actions={[ ... ]}
    shouldOpenOnLongPress={true}
    onPressAction={onPressAction}
>
    <Pressable onPress={onPressPressable}>
        <Text>Hit me</Text>
    </Pressable>
</MenuView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions