callstack / callstack/react-native-paper
Touch to display tooltip (Not long touch)
- 主要言語
- TypeScript
- スター
- 14.5k
- フォーク
- 2.2k
- 平均マージ
- 5日 23時間
- マージ済み PR(30日)
- 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
コントリビューションガイド
調査の方向性
Start with the Tooltip component and its enterTouchDelay behavior, then inspect how touch and long-touch activation are currently distinguished. Define the expected immediate-touch behavior for the info-icon example and add coverage for it before confirming the existing long-touch behavior still works.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native, typescript
- 領域
- mobile
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100