Skip to content

Add an IntersectionObserver playground to RNTester - #60430

Open
rubennorte wants to merge 1 commit into
react:mainfrom
rubennorte:export-D134824338
Open

rubennorte wants to merge 1 commit into
react:mainfrom
rubennorte:export-D134824338

Conversation

@rubennorte

Copy link
Copy Markdown
Member

Summary:

Context

The IntersectionObserver examples split root selection, clipping, thresholds, and prefetch across several screens. The playground lets developers compare these options on the same content.

Changes

  • Add a playground with a numbered list of variable-height items, default and explicit roots, and editable rootMargin, scrollMargin, threshold, and rnRootThreshold options.
  • Add Full impression, Partial impression, and Prefetch presets. Remove the standalone prefetch demo and its unit test. Keep the example components used by existing device tests unchanged.

Changelog: [Internal]

Differential Revision: D134824338

Summary:
## Context

The IntersectionObserver examples split root selection, clipping, thresholds, and prefetch across several screens. The playground lets developers compare these options on the same content.

## Changes

- Add a playground with a numbered list of variable-height items, default and explicit roots, and editable `rootMargin`, `scrollMargin`, `threshold`, and `rnRootThreshold` options.
- Add Full impression, Partial impression, and Prefetch presets. Remove the standalone prefetch demo and its unit test. Keep the example components used by existing device tests unchanged.

Changelog: [Internal]

Differential Revision: D134824338
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 1, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Dec 1, 2026
@meta-codesync

meta-codesync Bot commented Dec 1, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D134824338.

@zeyap zeyap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

This branch has not been deployed

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook Partner

2 participants