Skip to content

Correct route and dynamic param extraction for Expo Router (#6157)#6197

Open
alwx wants to merge 2 commits into
mainfrom
alwx/feature/6157
Open

Correct route and dynamic param extraction for Expo Router (#6157)#6197
alwx wants to merge 2 commits into
mainfrom
alwx/feature/6157

Conversation

@alwx
Copy link
Copy Markdown
Contributor

@alwx alwx commented May 21, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Fixes #6157

The idea is simple: when Expo Router is active, we can get the route from Expo Router's own state rather than from getCurrentRoute().name. That allows for this information about route and params to be more precise and detailed compared to the filename-based approach of React Navigation.

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@alwx
Copy link
Copy Markdown
Contributor Author

alwx commented May 21, 2026

@cursor review this please

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • feat(core): Expose pauseAppHangTracking and resumeAppHangTracking APIs by antonis in #6192

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 7c14529

@alwx alwx force-pushed the alwx/feature/6157 branch from 31c8c4f to 7c14529 Compare May 21, 2026 12:47
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 31c8c4f. Configure here.

@alwx alwx marked this pull request as ready for review May 21, 2026 12:49
*/
registerNavigationContainer: (navigationContainerRef: unknown) => void;
/**
* Internal API: allow another integration (for example, Expo Router integration) to
Copy link
Copy Markdown
Contributor

@antonis antonis May 21, 2026

Choose a reason for hiding this comment

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

I think an @internal annotation should make the api checker happy 🤞

Suggested change
* Internal API: allow another integration (for example, Expo Router integration) to
* @internal API: allow another integration (for example, Expo Router integration) to

Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Other than the API change issue LGTM!

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.

Correct route and dynamic param extraction for Expo Router

2 participants