Repository navigation
fix(fab): forward long press props so Tooltip works on FAB - #5172
Merged
Merged
Conversation
lukewalczak
force-pushed
the
fix/fab-tooltip-press-props
branch
from
November 6, 2026 10:36
cab49a1 to
e47e166
Compare
…-props # Conflicts: # src/components/FAB/Shell.tsx # src/components/__tests__/FAB.test.tsx
kachmashk
approved these changes
Nov 17, 2026
This comment has been minimized.
This comment has been minimized.
Doberjohn
approved these changes
Nov 17, 2026
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
likevy
added a commit
to likevy/react-native-paper
that referenced
this pull request
Nov 18, 2026
The shell clears its own press state in onPressOut and also calls the onPressOut that callstack#5172 forwards. Cover a hovered FAB's release doing both.
likevy
added a commit
to likevy/react-native-paper
that referenced
this pull request
Nov 18, 2026
Since callstack#5172 a FAB with only onLongPress or onPressOut is a button too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Tooltipwrapping aFABnever shows on mobile.Tooltipclones its child withonLongPress,onPressOutanddelayLongPress, but since the MD3 FAB rewrite (2f5e55d)FABandFAB.Extendedno longer forward them toShell, so the long press never reachesTooltip.Related issue
No issue. Reproducible in the example app's Tooltip screen.
Screenshots / Videos
Android, long-pressing the FAB in
TooltipExample:Test plan