callstack / callstack/react-native-paper

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

未关闭 适合新手
#5,003 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

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

贡献指南

打开贡献指南

调研方向

从 src/components/Tooltip/Tooltip.tsx 第 156 行附近开始,并在 Android 或 iOS 上使用链接的 Expo Snack 重现原生行为。跟踪 onPress 回调如何接收其参数,并验证事件对象是否传递到了父级回调,包括报告的与 pressable 相关的行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
mobile
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
74/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。