Repository navigation
revert(button): undo the shape morph refactor merged early - #5279
Merged
Merged
Conversation
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.
|
Found potential problems with the pull request:
|
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]>
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
#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
mainbefore the merge (9029fbc).Test plan
git diff 9029fbcd5 HEADis empty. CI on 9029fbc passed lint, typecheck, unit tests and the package and example builds.