Skip to content

fix: keep a popped card rendered while it animates out - #32

Merged
upupming merged 1 commit into
mainfrom
fix/card-screen-align
Sep 16, 2026
Merged

upupming merged 1 commit into
mainfrom
fix/card-screen-align

Conversation

@upupming

Copy link
Copy Markdown
Contributor

CardScreen rendered null for a popped route, so navigation.goBack() slid an empty screen away and the page looked like it closed at once. System back animated because the native pop starts before JS updates.

CardScreen now follows upstream's packages/native-stack/src/next/views/CardScreen.tsx @ 7b32fd92d line for line, minus the header: a popped screen stays rendered with interaction off, and inactive screens follow inactiveBehavior (default pause). ReactLynx has no Activity, so a paused screen keeps rendering.

Checked on a Pixel 5: going back from Level 1 now slides the page out.

@changeset-bot

changeset-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d966f3a

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 Patch

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 16, 2026

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

commit: d966f3a

@upupming
upupming force-pushed the fix/card-screen-align branch from ae7104c to d966f3a Compare September 16, 2026 08:15
@upupming
upupming merged commit cf49517 into main Sep 16, 2026
6 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.

1 participant