Skip to content

Commit

Permalink
[router]: fork NavigationContainer on web to use custom linking conte…
Browse files Browse the repository at this point in the history
…xt (#27712)

# Why

This should have been part of #27287

Forks the `NavigationContainer` to use the custom `useLinking` which
appends the baseURL to the redirect that React Navigation performs when
current state != focused state

# Test Plan

Tested using @byCedric's repo
https://github.com/byCedric/expo-issue-router-base-url

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
  • Loading branch information
marklawlor and expo-bot committed Mar 18, 2024
1 parent dd8f245 commit bb80091
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/expo-router/CHANGELOG.md
Expand Up @@ -28,6 +28,7 @@
- Cancel ExpoRouter SplashScreen during test teardown ([#27620](https://github.com/expo/expo/pull/27620) by [@marklawlor](https://github.com/marklawlor))
- Export `toHaveRouterState` and other matcher types from `expo-router/testing-library` ([#27646](https://github.com/expo/expo/pull/27646) by [@marklawlor](https://github.com/marklawlor))
- Fix missing types from typed routes ([#27412](https://github.com/expo/expo/pull/27412) by [@marklawlor](https://github.com/marklawlor))
- Fork NavigationContainer on web to use custom linking context ([#27712](https://github.com/expo/expo/pull/27712) by [@marklawlor](https://github.com/marklawlor))

### 💡 Others

Expand Down
25 changes: 24 additions & 1 deletion packages/expo-router/build/fork/NavigationContainer.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 107 additions & 2 deletions packages/expo-router/build/fork/NavigationContainer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-router/build/fork/NavigationContainer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb80091

Please sign in to comment.