Skip to content

feat: export IconSource type - #5207

Closed
aniilchauhan wants to merge 1 commit into
callstack:mainfrom
aniilchauhan:feat/export-icon-source
Closed

aniilchauhan wants to merge 1 commit into
callstack:mainfrom
aniilchauhan:feat/export-icon-source

Conversation

@aniilchauhan

Copy link
Copy Markdown

Motivation

Most icon props (Button, IconButton, List.Icon, FAB, ...) take IconSource, but the package does not export the type. Apps deep-import it from lib/typescript, and that path moved between 5.x and 6.x, so the import breaks on upgrade.

Related issue

Closes #5189

Screenshots / Videos

Not applicable, type-only change.

Test plan

In a consumer project, import type { IconSource } from 'react-native-paper' resolves and const icon: IconSource = 'camera' typechecks. No runtime change.

Most icon props take IconSource, but apps had to deep-import it from
lib/typescript, and that path changed between 5.x and 6.x.

Closes callstack#5189
@github-actions

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.

@Doberjohn

Copy link
Copy Markdown
Collaborator

Duplicate of #5194

@Doberjohn Doberjohn marked this as a duplicate of #5194 Nov 12, 2026
@Doberjohn Doberjohn closed this Nov 12, 2026
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