Skip to content

Wire up createViewTransitionInstance in Fabric#36196

Open
zeyap wants to merge 2 commits intofacebook:mainfrom
zeyap:fabric-view-transition-allocate-tag
Open

Wire up createViewTransitionInstance in Fabric#36196
zeyap wants to merge 2 commits intofacebook:mainfrom
zeyap:fabric-view-transition-allocate-tag

Conversation

@zeyap
Copy link
Copy Markdown
Contributor

@zeyap zeyap commented Apr 2, 2026

Summary

  • Wires up the native fabricCreateViewTransitionInstance call in createViewTransitionInstance which will create a ShadowNode for old pseudo element
  • Extracts tag allocation logic into a shared allocateTag() function exported from ReactFiberConfigFabric
    • Imports allocateTag in ReactFiberConfigFabricWithViewTransition
    • Reuses allocateTag() in createInstance and createTextInstance instead of inline tag incrementing

Test plan

  • Existing Fabric renderer tests should continue to pass
  • ViewTransition instance creation now properly allocates a tag and calls the native module

Extract the tag allocation logic into a shared `allocateTag()` function
in ReactFiberConfigFabric and use it in both `createInstance`/`createTextInstance`
and `createViewTransitionInstance` in the ViewTransition config. Also wire up
the native `fabricCreateViewTransitionInstance` call.
@meta-cla meta-cla bot added the CLA Signed label Apr 2, 2026
@zeyap zeyap changed the title Extract allocateTag and wire up createViewTransitionInstance in Fabric Wire up createViewTransitionInstance in Fabric Apr 2, 2026
@react-sizebot
Copy link
Copy Markdown

react-sizebot commented Apr 2, 2026

Comparing: 80b1cab...71e5fc2

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB +0.05% 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 612.91 kB 612.91 kB = 108.30 kB 108.30 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB +0.05% 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 678.85 kB 678.85 kB = 119.27 kB 119.27 kB
facebook-www/ReactDOM-prod.classic.js = 698.24 kB 698.24 kB = 122.65 kB 122.65 kB
facebook-www/ReactDOM-prod.modern.js = 688.55 kB 688.55 kB = 121.03 kB 121.03 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 71e5fc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants