Skip to content

Clarify when Expo native onHostBack runs on iOS - #3541

Draft
juliusmarminge wants to merge 1 commit into
clerk:mainfrom
juliusmarminge:pr/expo-native-host-back-fallback
Draft

juliusmarminge wants to merge 1 commit into
clerk:mainfrom
juliusmarminge:pr/expo-native-host-back-fallback

Conversation

@juliusmarminge

Copy link
Copy Markdown

🔎 Previews:

  • /docs/reference/expo/native-components/auth-view
  • /docs/reference/expo/native-components/user-profile-view

What does this solve? What changed?

  • On iOS, the host back button on <AuthView /> and <UserProfileView /> now pops the native navigation screen that contains the component, and onHostBack only runs when there is no screen to pop, such as when the component is the stack's root screen or is presented in a modal. Android still always runs onHostBack. Source change: clerk/javascript#10271.
  • Updated the "navigation stack" guidance and the onHostBack prop descriptions on both pages to say when the callback runs, and to dismiss a modal (not only pop a route) from it.

Deadline

Other resources

Prepared with Claude Opus 5.5 through Claude Code on behalf of @juliusmarminge.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge requested a review from a team as a code owner October 16, 2026 18:54
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for contributing! A quick heads-up on how external contributions work: Clerk's docs are maintained in Clerk's internal monorepo, and this public repo is its read-only mirror — nothing merges here directly, and there are no preview deployments on this repo. Nothing is needed from you. A Clerk maintainer will review this PR, and if it's accepted, they'll bring your change into the monorepo with your commits and authorship preserved — it then goes live on clerk.com/docs shortly after. See Contributing to Clerk's documentation for the full picture.

The failing Block merges check on this PR is expected — merging is disabled in this repo on purpose.

@github-actions github-actions Bot added the external-contribution Fork PR awaiting maintainer triage (accept → migrate, or decline) label Oct 16, 2026
@SarahSoutoul SarahSoutoul self-assigned this Oct 16, 2026
@SarahSoutoul
SarahSoutoul marked this pull request as draft October 22, 2026 16:06
@SarahSoutoul

Copy link
Copy Markdown
Contributor

Thanks for the contribution @juliusmarminge! Converted the PR to draft while waiting on a decision around merging this or not. Our engineers are currently discussing the change and seeing if it's sth they'd want implemented, so this will be reviewed if we do go ahead.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contribution Fork PR awaiting maintainer triage (accept → migrate, or decline)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants