Skip to content

feat: export missing types from standard-navigator#4

Merged
satya164 merged 2 commits into
mainfrom
@ubax/export-missing-types
Jun 3, 2026
Merged

feat: export missing types from standard-navigator#4
satya164 merged 2 commits into
mainfrom
@ubax/export-missing-types

Conversation

@Ubax
Copy link
Copy Markdown
Collaborator

@Ubax Ubax commented Jun 1, 2026

No description provided.

@Ubax Ubax requested a review from satya164 June 1, 2026 18:13
Comment thread src/index.tsx Outdated
};

type NavigatorEventMapBase = Record<
export type NavigatorEventMapBase = Record<
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure this should be exported. This one is just for the generic. Consumers should define the event map they support, which they should be able to use for all of their code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Removing this export for now. I see the value for implementors, but from React Navigation, my experience has been that people overuse such types where they should specify a correct type. So for now, I'd avoid exporting it. It's quite tiny so I think it shouldn't be a problem to duplicate for implementors.

@satya164 satya164 merged commit 05206f6 into main Jun 3, 2026
2 checks passed
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.

2 participants