Skip to content

feat(types): export IconSource and IconProps from package root - #5194

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix-export-iconsource
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix-export-iconsource

Conversation

@EnesKartal

Copy link
Copy Markdown

Motivation

Many Paper components (e.g. Button, IconButton, FAB, Searchbar, Snackbar, SegmentedButtons, DrawerItem, BottomNavigation) accept an icon prop typed with Paper's IconSource. However, IconSource and IconProps were not re-exported from the package root, forcing consumers to resort to fragile deep imports (react-native-paper/lib/typescript/...) that break across releases. This PR exports IconSource and IconProps directly from the root entry.

Related issue

Closes #5189

Screenshots / Videos

N/A (type export)

Test plan

  1. Run yarn typecheck to verify export integrity.
  2. Run yarn test src/components/__tests__/Icon.test.tsx to verify type resolution and runtime behavior.

Copilot AI balanced review requested due to automatic review settings November 8, 2026 10:44

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.

@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.

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.

Export the IconSource type from react-native-paper

2 participants