refactor: Addressed follow up for ListItem#1232
Open
brianacnguyen wants to merge 1 commit into
Open
Conversation
Contributor
📖 Storybook Preview |
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.
Description
Addresses review follow-ups from #1231 for the React Native
ListItem/Contentaccessory refactor.Why: The original refactor moved row shell accessories to
ListItemand hardcodedgap={0}on the internalBoxRow, removing the previous 16px spacing. Review also called for aMIGRATION.mdentry for the breaking prop removals and symmetric test coverage forendAccessory.What changed:
accessoryGapprop — NewListItemprop (BoxSpacing, default0) controls spacing betweenstartAccessory/endAccessoryand the innerContentrow. PassaccessoryGap={4}to restore legacy 16px spacing.MIGRATION.md— Added 0.29.0 → 0.30.0 entry documenting:startAccessory/endAccessorymoved fromContenttoListItemtopAccessory/bottomAccessoryremoved; compose withBoxColumninsteadaccessoryGap={4}note for restoring previous spacingendAccessory+ avatar test (symmetric with existingstartAccessorycoverage)accessoryGapin README; addedAccessoryGapstory and Storybook control; updatedStartAccessory/EndAccessorystories to useaccessoryGap={4}Related issues
Follow-up to #1231
Fixes:
Manual testing steps
yarn storybook:iosoryarn storybook:androidStartAccessory,EndAccessory, andAccessoryGapstoriesAccessoryGapstory rows —accessoryGap={0}vsaccessoryGap={4}spacing should be visibly differentaccessoryGapin Storybook controls on accessory storiesScreenshots/Recordings
Before
ListItemhardcodedgap={0}between shell accessories and inner content with no way for consumers to adjust spacing.After
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2026-06-12.at.15.03.50.mov
Pre-merge author checklist
Pre-merge reviewer checklist