callstack / callstack/react-native-paper
Tooltip: onPress event object is not propagated to parent component on native
- 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
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