Explore bridgeless constructViewTest with WindowManager + CONTENT_APPEARED#104
Draft
EmilioBejasa wants to merge 2 commits intomainfrom
Draft
Explore bridgeless constructViewTest with WindowManager + CONTENT_APPEARED#104EmilioBejasa wants to merge 2 commits intomainfrom
EmilioBejasa wants to merge 2 commits intomainfrom
Conversation
…EARED Two key findings: - reactHost.onHostResume(null) must be called before surface.start() or Fabric won't commit mutations even though JS renders successfully - TYPE_APPLICATION_OVERLAY gives Fabric a real Window so the Choreographer fires and commits the shadow tree; ViewHelpers.setupView is not enough Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tdrhq
requested changes
Apr 3, 2026
Contributor
tdrhq
left a comment
There was a problem hiding this comment.
ViewHelpers.setupView does not attach the view to a real Window, so Fabric's Choreographer never fires and mutations never apply (blank screenshot)
I linked to how to fix this in your previous PR without using a real window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exploratory branch investigating the correct approach to render a React Native surface in bridgeless mode during instrumentation tests and capture a non-blank screenshot.
Key findings:
ViewHelpers.setupViewdoes not attach the view to a real Window, so Fabric's Choreographer never fires and mutations never apply (blank screenshot)WindowManager.TYPE_APPLICATION_OVERLAYwithalpha=0fprovides a real Window without needing an ActivityreactHost.onHostResume(null)is required beforesurface.start()— without RESUMED lifecycle state, Fabric silently drops all render tree mutationsReactMarkerConstants.CONTENT_APPEAREDis the correct signal for knowing Fabric's first render is completeLAYER_TYPE_SOFTWARE) is required forScreenshot.snap()to capture viadraw(canvas)This branch is exploratory — the actual fix was applied to PR #103.
🤖 Generated with Claude Code