SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

244272 0 0 JavaScript

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.
J
Jack Pope committed
408d055a3b89794088130ed39bf42ca540766275
Parent: fbf29cc
Committed by GitHub <[email protected]> on 4/30/2025, 2:47:18 PM