Skip to content

revert(button): undo the shape morph refactor merged early - #5279

Merged
Doberjohn merged 1 commit into
mainfrom
@Doberjohn/revert-shape-morph
Nov 23, 2026
Merged

Doberjohn merged 1 commit into
mainfrom
@Doberjohn/revert-shape-morph

Conversation

@Doberjohn

Copy link
Copy Markdown
Collaborator

Motivation

#5264 (one shape morph for Button and IconButton) was merged by mistake as 343f2cf, and its squash message took the title and body meant for #5278, a docs change that is still open. The refactor was meant to wait until after 6.0.0-alpha.4, so the release matches the code it was tested on. This reverts it. #5264 will come back in a new pull request with its own title.

Related issue

Reverts #5264 (merged as 343f2cf).

Screenshots / Videos

None, no visual change: the tree is identical to main before the merge (9029fbc).

Test plan

git diff 9029fbcd5 HEAD is empty. CI on 9029fbc passed lint, typecheck, unit tests and the package and example builds.

This reverts commit 343f2cf.

That commit is #5264, "refactor(button): share the shape morph between
Button and IconButton". It was merged by mistake, and its squash message
took the title and body meant for #5278, a docs change that is still
open: the commit changes no docs. The refactor waits until after
6.0.0-alpha.4, so the release matches the code it was tested on. It will
come back in a new pull request with its own title.
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn
Doberjohn merged commit 9c7e834 into main Nov 23, 2026
15 of 16 checks passed
Doberjohn added a commit that referenced this pull request Nov 23, 2026
…#5292)

Re-lands #5264, which #5279 reverted to keep it out of 6.0.0-alpha.4.

Button and IconButton now share useShapeMorph, which caps the spring curve against the inner corner, as Button already did (IconButton capped against the outer one). With the default theme both caps give the same curve. The ripple color helper moves to TouchableRipple/utils, so IconButton no longer imports from Button.

Co-authored-by: Luke Walczak <[email protected]>
@Doberjohn
Doberjohn deleted the @Doberjohn/revert-shape-morph branch November 24, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant