Skip to content

Tooltip: onPress event object is not propagated to parent component on native #5003

@szado

Description

@szado

Current behaviour

onPress (and probably other pressable-related) event object is not propagated to parent component on native (Android/iOS).

This line is suspicious:
https://github.com/callstack/react-native-paper/blob/main/src/components/Tooltip/Tooltip.tsx#L156C18-L156C25

Expected behaviour

Event object should be passed to parent callbacks.

How to reproduce?

https://snack.expo.dev/@szado/rnp-tooltip-onpress-bug

Your Environment

software version
react-native-paper 5.15.3
expo sdk 55

Metadata

Metadata

Assignees

No one assigned

    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