dillon1000/react

Commit

Add Fragment Refs to Fabric with intersection observer support (#33056)

Adds Fragment Ref support to RN through the Fabric config, starting with
`observeUsing`/`unobserveUsing`. This is mostly a copy from the
implementation on DOM, and some of it can likely be shared in the future
but keeping it separate for now and we can refactor as we add more
features.

Added a basic test with Fabric, but testing specific methods requires so
much mocking that it doesn't seem valuable here.

I built Fabric and ran on the Catalyst app internally to test with
intersection observers end to end.
Browse files
Changed paths6 files
First-parent comparison
M packages/react-native-renderer/src/ReactFiberConfigFabric.js ModifiedA packages/react-native-renderer/src/__tests__/ReactFabricFragmentRefs-test.internal.js AddedM packages/react-reconciler/src/ReactFiberTreeReflection.js ModifiedM packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js ModifiedM packages/shared/forks/ReactFeatureFlags.native-fb.js ModifiedM scripts/error-codes/codes.json Modified
Patch

Files changed

Rendering syntax-highlighted changes…