Skip to content

feat: Add onDropView() to Hybrid Views#1266

Merged
mrousavy merged 8 commits intomainfrom
feat/ondropview
Mar 13, 2026
Merged

feat: Add onDropView() to Hybrid Views#1266
mrousavy merged 8 commits intomainfrom
feat/ondropview

Conversation

@mrousavy
Copy link
Copy Markdown
Owner

@mrousavy mrousavy commented Mar 13, 2026

Adds onDropView() to the HybridView protocol/interface which consumers can override to get notified when the view is being dropped by Fabric.

If View recycling is enabled, the behaviour of onDropView() differs between iOS and Android:

  • iOS: Only prepareForRecycle() will be called, no onDropView()
  • Android: First onDropView() is called, then prepareForRecycle()

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
nitro-docs Skipped Skipped Mar 13, 2026 1:30pm

Request Review

Copy link
Copy Markdown
Contributor

@hannojg hannojg left a comment

Choose a reason for hiding this comment

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

lgtm

@hannojg
Copy link
Copy Markdown
Contributor

hannojg commented Mar 13, 2026

approvimente 🤌

@mrousavy mrousavy merged commit dc233c5 into main Mar 13, 2026
16 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.

3 participants