callstack / callstack/react-native-paper

Touch to display tooltip (Not long touch)

Open
#4,206 3 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

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

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.