Tooltip: onPress event object is not propagated to parent component on native
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- react-native, typescript
- Domain
- mobile
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.
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 |
- Dominant language
- TypeScript
- Stars
- 14.5k
- Forks
- 2.2k
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstack/react-native-paper
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
callstack/react-native-paper#5096 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
callstack/react-native-paper#5093 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
callstack/react-native-paper#4951 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
callstack/react-native-paper#4881 ·
-
feature request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
callstack/react-native-paper#4863 · 1 comment ·
All issues in callstack/react-native-paper
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100