Skip to content

fix(types): widen color props to ColorValue (#5179) - #5193

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix-color-props-colorvalue
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix-color-props-colorvalue

Conversation

@EnesKartal

@EnesKartal EnesKartal commented Nov 8, 2026 •

Copy link
Copy Markdown

Summary

Fixes #5179

Theme color roles are typed ColorValue, but several component color props were still string, so passing theme or PlatformColor values failed to compile (TS2322). This widens them to ColorValue in ProgressBar, Appbar.Content, Avatar.Icon/Avatar.Text, TouchableRipple (underlayColor), BottomNavigation/.Bar, SegmentedButtons, RadioButton* and Checkbox.Item.

Test plan

  • Added src/components/__tests__/ColorProps.test.tsx: each updated component renders with a ColorValue prop.
  • yarn typecheck, yarn lint and the new test pass.

No visual change, so no screenshots.

Copilot AI balanced review requested due to automatic review settings November 8, 2026 09:37
@github-actions

github-actions Bot commented Nov 8, 2026 •

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Doberjohn

Copy link
Copy Markdown
Collaborator

CI fails on Lint. Prettier wants the react-native import at the top of src/components/Avatar/AvatarText.tsx split over several lines.

Copilot AI balanced review requested due to automatic review settings November 9, 2026 18:28
@EnesKartal

Copy link
Copy Markdown
Author

Thanks, pushed the Prettier fix for AvatarText.tsx (eslint is clean now) and shortened the description.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@EnesKartal
EnesKartal force-pushed the fix-color-props-colorvalue branch from 0a6e2a5 to d515c23 Compare November 13, 2026 21:00
Copilot AI balanced review requested due to automatic review settings November 13, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

Color props typed string reject theme colors, which are ColorValue in 6.x

3 participants