Skip to content

Comments

Register StoryRenderer component with AppRegistry#33

Open
EmilioBejasa wants to merge 7 commits intomainfrom
fix/blank-screenshots
Open

Register StoryRenderer component with AppRegistry#33
EmilioBejasa wants to merge 7 commits intomainfrom
fix/blank-screenshots

Conversation

@EmilioBejasa
Copy link
Collaborator

Summary

  • Fix screenshot tests failing with "StoryRenderer has not been registered"
  • BaseStoryRendererActivity loads a React Native component named "StoryRenderer", but it wasn't being registered with AppRegistry

Test plan

  • CI should pass with screenshot tests running successfully

🤖 Generated with Claude Code

EmilioBejasa and others added 7 commits February 4, 2026 15:54
BaseStoryRendererActivity loads a React Native component named
"StoryRenderer", but it wasn't being registered. This caused the
screenshot tests to fail with "StoryRenderer has not been registered".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This helps diagnose why screenshots are blank by:
- Adding console logs throughout the rendering process
- Yellow background when loading (indicates stuck in async)
- Red background when error (with error message)
- Normal white when story renders

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Prevents false positives in Screenshotbot where screenshots differ
only in EXIF/metadata (timestamps) but have identical pixel data.
Uses Java ImageIO to re-write PNGs without metadata chunks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pullDebugAndroidTestScreenshots task doesn't run in CI.
The record task handles pulling internally, so hook into that instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Gradle doLast approach didn't reliably strip metadata. Instead,
split CI into three steps: record screenshots, strip EXIF with
exiftool, then upload to Screenshotbot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The EXIF metadata stripping was unnecessary — PNGs had no EXIF data.
The real cause of Screenshotbot ACTION_REQUIRED is that main CI is
failing (from PR #29), so Screenshotbot can't find a clean baseline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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