Skip to content

feat: realistic instance hiding#1898

Open
mdjastrzebski wants to merge 2 commits intomainfrom
feat/realistic-instance-hidding
Open

feat: realistic instance hiding#1898
mdjastrzebski wants to merge 2 commits intomainfrom
feat/realistic-instance-hidding

Conversation

@mdjastrzebski
Copy link
Copy Markdown
Member

@mdjastrzebski mdjastrzebski commented Apr 14, 2026

Summary

Align render with React Native's hidden-instance behavior by transforming suspended hidden host props to include display: 'none'.

This updates the custom test-renderer root options in src/render.tsx to attach hidden styles through transformHiddenInstanceProps, including the case where an element previously had no style prop at all.

Test plan

  1. Run yarn test src/__tests__/render.test.tsx --runInBand

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (e3a3f68) to head (88120d1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1898   +/-   ##
=======================================
  Coverage   98.36%   98.37%           
=======================================
  Files          79       79           
  Lines        1471     1476    +5     
  Branches      408      409    +1     
=======================================
+ Hits         1447     1452    +5     
  Misses         24       24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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