callstack / callstack/react-native-paper
Touch to display tooltip (Not long touch)
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
**Is your feature request related to a problem? Please describe.**
I have an info icon like ℹ️ or similar. I would like my users to touch the icon, without long touch, as this would be more intuitive
**Describe the solution you'd like**
Can we add an option to touch without to long touch for the tooltip text to be triggered? I'd be happy to pick this up
**Describe alternatives you've considered**
I have tried setting the `enterTouchDelay` prop to something like `0` or `1` so that it might trigger much sooner. Seems like this delay is only applicable after a long touch is registered
**Additional context**
an example where I'd prefer a touch instead of a long touch
贡献指南
调研方向
从 Tooltip 组件及其 enterTouchDelay 行为开始,然后检查当前如何区分 touch 和 long-touch 激活。为 info-icon 示例定义预期的即时 touch 行为,并在确认现有的 long-touch 行为仍然有效之前,为此添加覆盖测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100