Skip to content

fix(segmented-buttons): use a custom icon for the selected check - #5322

Open
pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-4296
Open

pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-4296

Conversation

@pcbeingused333

@pcbeingused333 pcbeingused333 commented Nov 25, 2026 •

Copy link
Copy Markdown

Fixes #4296

showSelectedCheck always drew the check glyph, so a selected segment could not use another icon. The button now takes checkedIcon and still uses check when that prop is omitted.

Screenshots / Videos

React Native Web in Chromium. First row: checkedIcon: 'star', icon: 'heart', selected. Second row: no checkedIcon, selected. Third row: checkedIcon: 'star', icon: 'heart', unselected.

Before (main) After (this PR)
Before (main) After (this PR)

Prepared with the help of an AI coding assistant.

showSelectedCheck always drew the check glyph. A button can now pass
checkedIcon, which still defaults to check.

Fixes callstack#4296
@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 28, 2026
@pcbeingused333

Copy link
Copy Markdown
Author

Added before/after screenshots to the description (React Native Web in Chromium). With checkedIcon: 'star' and icon: 'heart', the selected segment shows the star instead of the check, and the heart comes back when it is deselected. Omitting checkedIcon keeps the default check.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SegmentedButtons Checked Icon not support to customize

2 participants