callstack / callstack/react-native-paper

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

Open Beginner friendly
#5,003 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start at src/components/Tooltip/Tooltip.tsx around line 156 and reproduce the native behavior with the linked Expo Snack on Android or iOS. Trace how the onPress callback receives its arguments and verify that the event object reaches the parent callback, including the reported pressable-related behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.