callstack / callstack/react-native-paper

Touch to display tooltip (Not long touch)

オープン
#4,206 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature request
主要言語
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**
Screenshot 2023-11-29 at 04 57 31
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。