Skip to content

feat(react-navigation): add Detour linking adapter API and migrate examples to linking-based integration - #63

Merged
piaccho merged 9 commits into
mainfrom
feat/improve-react-navigation-examples
May 18, 2026
Merged

feat(react-navigation): add Detour linking adapter API and migrate examples to linking-based integration#63
piaccho merged 9 commits into
mainfrom
feat/improve-react-navigation-examples

Conversation

@piaccho

@piaccho piaccho commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a dedicated React Navigation adapter API to Detour and updates both React Navigation examples to use linking-based flows aligned with React Navigation docs.

Changes

  • Added a React Navigation adapter API to Detour (Detour.getInitialURL, Detour.addEventListener, DETOUR_LINKING_PREFIX).
  • Wired Detour's internal link resolution into React Navigation's getInitialURL + subscribe linking flow.
  • Updated react-navigation example to use this adapter inline with a declarative linkingConfig.
  • Updated react-navigation-advanced example to use the same inline adapter pattern, combined with conditional screen rendering and UNSTABLE_routeNamesChangeBehavior="lastUnhandled" so React Navigation natively replays deep links across the sign-in → onboarding gate.
  • Updated README and example READMEs for the new integration patterns and adapter types.

@piaccho
piaccho requested review from BrtqKr and SikoraKam as code owners May 13, 2026 16:01
@piaccho
piaccho merged commit 2acf5c9 into main May 18, 2026
5 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