Skip to content

feat: line the exports up with @react-navigation/native and native-stack - #19

Merged
upupming merged 2 commits into
mainfrom
feat/align-native-exports
Sep 10, 2026
Merged

upupming merged 2 commits into
mainfrom
feat/align-native-exports

Conversation

@upupming

Copy link
Copy Markdown
Contributor

Root export, mirroring @react-navigation/native: LinkingContext, LocaleDirContext + useLocale (with a direction prop on NavigationContainer), useLinkTo, useLinkBuilder, useRoutePath, MaterialDarkTheme / MaterialLightTheme, and export * from './types' (the linking option types move there).

/stack, mirroring @react-navigation/native-stack: exports LynxStackView and LynxStackOptionsArgs; drops the descriptor and helper types from the public entry.

Not ported: Link / useLinkProps (need a Lynx <text> version), createStandardNavigationFactories (depends on standard-navigation), useScrollToTop, SFSymbol / MaterialSymbol / CornerInset, and header hooks.

Verified on a Pixel 4 XL with the example: useLinkTo('/detail') navigates, useRoutePath() reports /detail.

Lines the entry up with @react-navigation/native-stack: the view and the
options-callback args are public, the descriptor and helper types are not.
LinkingContext, LocaleDirContext and useLocale (NavigationContainer takes a
direction), useLinkTo, useLinkBuilder, useRoutePath, the Material fallback
themes, and every type from types. The linking option types move to types so
the same export * works.
@changeset-bot

changeset-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7eb068b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@react-navigation/lynx Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown
pnpm add https://pkg.pr.new/@react-navigation/lynx@7eb068b

commit: 7eb068b

@upupming
upupming merged commit 73bb3f7 into main Sep 10, 2026
6 checks passed
@upupming
upupming deleted the feat/align-native-exports branch September 10, 2026 05:51
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.

1 participant