Skip to content

spec(Popover): React Native platform record - #12842

Draft
imdreamrunner wants to merge 6 commits into
chore/knowledge-react-native-platform-recordsfrom
spec/popover-react-native-record
Draft

imdreamrunner wants to merge 6 commits into
chore/knowledge-react-native-platform-recordsfrom
spec/popover-react-native-record

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #12592; merges after it.

Merge order: this record also cites spec:AST-128 (#12558) for the presentation host and the system popover, and the React Native BottomSheet record, which owns the sheet form. It merges after those.

Exact decision needed

How React Native shows Popover: the core props it offers and the one it adds (sheetTitle), how the caller's trigger control opens it, where the surface comes from on each platform and how it fits and closes, and how the surface sits in React Native's accessibility tree and returns focus.

For an engineering owner: the React Native-only sheetTitle, leaving width and role to the web contract, and OQ1 (how a screen reader opens a popover whose trigger is content children, with no element of the component's own around the control).

Existing authority searched

  • component:Popover (docs/specs/components/Popover/Popover.spec.md): lifecycle, focus entry, focus return (AR4), overflow, padding, motion under a finger, the sheet form (DEC-6, DEC-8); no React Native rendering.
  • spec:AST-055 (caller-rendered trigger): FR1–FR4 and AR2, the caller's control as the trigger with no element of the component's own around it.
  • spec:AST-116 (popover anchoring, current on main): FR16, the sheet follows isModal; FR17–FR20, focus return acts only on stranded focus. It landed on main after this PR's base branch, so the record cites it in the body only.
  • family:overlay-dismissal: which touches dismiss an overlay.
  • spec:AST-059 FR2 and FR3: the layer's viewport and safe-area cap.
  • spec:AST-082 FR3–FR5, FR7 and FR11: one name, a portable core, platform-scoped props, base props, native-first controls.
  • spec:AST-128 (open draft): FR5, the presentation host; cited for the native piece, not as a governing rule.
  • Terms searched: Popover, presentation, anchored surface, light dismiss, renderTrigger. No open pull request records Popover on React Native.

Decision

docs/specs/components/Popover/Popover.react-native.spec.md (component:react-native/Popover, platform_of: component:Popover):

  • React Native exports Popover under core's name with core's props and defaults; the web contract's props (anchorRef, width, role, xstyle) are not offered.
  • The trigger is the caller's own control: children as a render function receives the anchor, the toggle handler and the expanded state to spread on it; content children get a box that anchors and reads presses but is never an element of its own (spec:AST-055).
  • On iOS the anchored form is the system popover, kept anchored in every width. On Android no platform control fits (spec:AST-093 FR2): an anchored window holds its content outside the app's layer, where overlay dismissal, the docked-keyboard bound and the trigger's position are kept, and Material 3 defines no popover surface; so Android draws the surface in the app's layer, flipped and capped inside the safe bounds, with a scrolling capped body (DEC-3).
  • A touch outside closes it and reaches nothing under it; Android back and the VoiceOver escape close a modal popover, and a non-modal one only while focus is inside it, or on or inside its anchor or trigger (spec:AST-116 FR15). A non-modal sheet does not close on a tap on the screen (FR16).
  • The surface is a dialog whose first element is its name, a visually hidden text, because a container label names nothing in React Native (DEC-1); focus enters the first content control, else the named surface; hasAutoFocus={false} moves nothing; on close only stranded focus moves, first to the element focused when the popover opened (spec:AST-116 FR17–FR20).
  • The sheet form follows isModal (spec:AST-116 FR16) and is named by label, else by the trigger's text; sheetTitle adds a header with Done (DEC-2).
  • Six gap lines state where the package differs today: the wrapper trigger (and triggerWidth), the drawn surface on iOS, no growth from the trigger, focus entry, focus return, and the sheet's modality and name.

Rejected alternatives

None recorded in the record.

Claim scope and non-goals

The record covers only what React Native adds to component:Popover or does differently. Dismissal rules, the sheet container and the presentation host stay with their owners, which the record's ownership lines name.

Evidence and implementation relationship

The record is a specification only and has no implementation in this pull request. Its gap lines state where the current package differs from the requirements.

Writing rubric results

  • R1 narration: none; the record is in the present tense, and each decision states a rule with its reason.
  • R2 research in the record: none; one-sentence reasons inside DEC-1 to DEC-3 only.
  • R3 evidence naming a change: none; every basis cell names records and claims.
  • R4 rejected alternatives over one line or outside a decision: none; the record keeps no Rejected: lines.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none; OQ1 is open and lists no options.
  • R7 project status (build status or work order): the package's differences are stated as FRn gap lines; "not yet released" appears only in the template's lifecycle field and readiness cell.

Scope

Components: Popover (React Native)

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • node scripts/check-knowledge.mjs: knowledge templates and records are aligned; no finding in this record.
  • Prettier: --check clean on the record.
  • git diff --check: clean.

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 19, 2026 8:53am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 19, 2026, 8:58 AM UTC

@astracat-bot astracat-bot Bot 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.

This draft record needs an engineering owner's decision before it can be approved, and four of its requirements need fixing either way.

Every requirement in component:react-native/Popover is new draft direction, so approval waits on an engineering owner recording the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The decision needs to settle the React Native-only triggerWidth and sheetTitle props and the removal of width and role from Popover's core contract on React Native.

Blocking:

  • FR6 (line 109) moves screen-reader focus to the hidden name before the first content control, which contradicts component:Popover FR2 and spec:AST-082 FR3, where focus behavior is part of the core contract on every platform, and it moves focus in on Android even with hasAutoFocus={false}, honoring that core prop only in part.
  • FR8 (line 111) makes every sheet modal and always light-dismissing and names it by label alone, which contradicts spec:AST-116 FR16 (a non-modal sheet for isModal={false}) and component:Popover DEC-8 (fall back to the trigger's text).
  • FR4 (line 107) draws a custom surface on iPad, where iOS has a system popover, which contradicts spec:AST-082 FR11 and spec:AST-093 FR2, and the gap line at line 64 files that against FR4 itself.
  • DEC-3 (line 239) justifies triggerWidth by calling the web anchor a block element, but core's anchor wrapper is inline-flex (packages/core/src/Popover/Popover.tsx:400), so the web trigger already hugs its child.

Also worth fixing: no record defines FR2's "tooltip's touch slop", line 174 overlooks Android's anchored PopupWindow, and the record cites spec:AST-128 and the React Native BottomSheet record, which are not on main yet, but never cites spec:AST-116.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the pull request contains a specification record only, with no implementation: verified (one Markdown file is added).
  • Claim: the repository's knowledge check finds nothing in this record: verified (it passes at this head).
  • Claim: the Prettier check is clean on the record: verified.
  • Claim: the whitespace diff check is clean: verified.
  • Claim: rubric items R1 to R6 find nothing: verified against the record.
  • Claim: R7, the package's differences are stated as requirement gap lines: partly false, since the iPad line is filed against FR4, which itself requires the drawn surface.
  • Claim: three gap lines state where the package differs today: unverified, since the repository holds no React Native code.
  • Claim: dismissal rules, the sheet container and the presentation host stay with their owners: partly false, since FR8 restates the sheet's dismissal and naming differently from the current Popover and popover-anchoring records.
  • Claim: no open pull request records Popover on React Native: verified by a repository search.
  • File: docs/specs/components/Popover/Popover.react-native.spec.md: findings above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

This draft record needs an engineering owner's decision before it can be approved, and five of its parts need fixing either way.

Every requirement in component:react-native/Popover is new draft direction, so approval waits on an engineering owner recording the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. That decision needs to settle the React Native-only triggerWidth and sheetTitle props and dropping width and role from Popover's core contract on React Native.

Blocking:

  • FR8 (line 114) still makes every sheet modal and always light-dismissing, but component:Popover DEC-8 on main is amended by spec:AST-116 FR16, which is current rather than an open draft, so that isModal={false} presents a non-modal sheet.
  • FR6 (line 112), AR4 (line 161) and the Android back row (line 133) always return focus to the trigger, while component:Popover AR4 and spec:AST-116 FR17–FR20 move only stranded focus, first to the element focused when the popover opened.
  • Miss: FR2, FR3 and DEC-1 (lines 108–109 and 220–228) make the touch-reading wrapper a button around the caller's control, which spec:AST-055 AR2 and FR3 forbid, when core's render-function children already hands the caller the handlers to put on their own control.
  • FR6's new focus entry contradicts AR2 (line 156), the "screen reader on" row (line 132) and the End-user impact row (line 31), which still say focus lands on the popover's name.
  • DEC-4 (line 257) draws its own surface on iPhone because "UIKit turns a popover into a sheet", but that is only UIKit's default adaptation (a popover stays anchored when its adaptive delegate returns .none), so spec:AST-082 FR11 and spec:AST-093 FR2 call for the system popover there or a named contract point it fails.

Also worth fixing: line 179 says PopupWindow brings no dismissal, the sheet's Done label has no catalog string or label prop, and FR5 should say a non-modal popover takes back only while focus is in its scope.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the record is stacked on the pull request that admits React Native platform records and merges after it: verified (that pull request is open and its branch is this one's base).
  • Claim: the record also depends on the presentation-host record and the React Native BottomSheet record and merges after them: verified (both are open pull requests).
  • Claim: the popover-anchoring record is an open draft, and the record follows the current Popover sheet decision: false (the popover-anchoring record is current on main, and the Popover sheet decision carries its amendment for non-modal sheets).
  • Claim: no open pull request records Popover on React Native: verified by a repository search.
  • Claim: the web contract's props are not offered, and React Native adds triggerWidth and sheetTitle: verified (FR1, FR8).
  • Claim: the trigger is a wrapper that toggles on a still touch and is one expandable button under a screen reader: verified (FR2, FR3); it contradicts the caller-rendered trigger record.
  • Claim: iPad uses the system popover, and phones and Android draw the surface in the app's layer: verified (FR4); the iPhone reason is incomplete.
  • Claim: focus enters the first content control, else the named surface, and hasAutoFocus={false} moves nothing: verified in FR6; AR2 and the screen-reader row still say the name.
  • Claim: the sheet is modal, always light-dismissing and named by label, else the trigger's text, as core's sheet decision says: the naming is verified; the modality is false against the amended decision.
  • Claim: five gap lines state where the package differs today: five lines verified, each naming its requirement and the mismatch; their content cannot be checked here because the React Native package is not in this repository.
  • Claim: no rejected alternatives, and writing rubric items R1 to R7 find nothing: verified against the record.
  • Claim: the canonical owner, affected current claims and overlapping open work are named: partly false (the caller-rendered trigger record is not named, and the popover-anchoring record is misdescribed).
  • Claim: the repository's knowledge check finds nothing in this record: verified.
  • Claim: the Prettier check is clean on the record: verified.
  • Claim: the whitespace diff check is clean: verified.
  • File: docs/specs/components/Popover/Popover.react-native.spec.md: findings above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

This draft record needs an engineering owner's decision before it can be approved, and three of its parts need fixing either way.

Every requirement in component:react-native/Popover is new draft direction, so approval waits on an engineering owner recording the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. That decision needs to settle the React Native-only sheetTitle, moving width and role out of Popover's core contract on React Native, and OQ1 (how a screen reader opens a popover whose trigger is content children).

Blocking:

  • FR8 (line 119) and FR5 (line 116) let a tap on the screen, Android back and the VoiceOver escape close a non-modal sheet or popover, but spec:AST-116 FR16 says a press on the page does not close a non-modal sheet, and FR15 passes Escape and back to the screen beneath when focus is outside the popover and its trigger.
  • DEC-3 (line 250) and the Platform control paragraph (line 186) say only that Material 3 has no anchored popover, while spec:AST-093 FR2 asks the record to name the Android control it looked for, such as PopupWindow or Compose's Popup, and why it does not fit.
  • FR6 (line 117) moves focus whenever it is stranded in the surface or on nothing, but spec:AST-116 FR17 also requires that focus entered the surface while it was open.

Also worth fixing, none blocking: FR2's handed-back props leave out aria-haspopup, aria-controls and a way for id and isHidden to reach the caller's control; the sheet's Done button needs a named catalog key; and (Miss:) FR6 makes a modal surface modal to VoiceOver only and says nothing about TalkBack.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the record is stacked on the pull request that admits React Native platform records and merges after it: verified (that pull request is open and its branch is this one's base).
  • Claim: the record also depends on the presentation-host record and the React Native BottomSheet record and merges after them: verified (both are open pull requests).
  • Claim: the popover-anchoring record is current on main and absent from the base branch, so the record cites it in the body only: verified.
  • Claim: no open pull request records Popover on React Native: verified by a repository search.
  • Claim: core's props and defaults are kept and the web contract's props are not offered: verified (FR1).
  • Claim: the trigger is the caller's own control, with no element of the component's own around it: verified (FR2, FR3); the caller-rendered trigger record names its render prop differently, which the record does not mention.
  • Claim: iOS uses the system popover in every width and Android draws the surface in the app's layer: verified (FR4, DEC-3); the Android account names no platform control.
  • Claim: an outside touch, Android back and the VoiceOver escape close it: verified (FR5); for non-modal popovers this goes past the anchoring record's limits.
  • Claim: focus enters the first content control, hasAutoFocus={false} moves nothing, and on close only stranded focus moves, first to the element focused at open: verified (FR6); the stranded test leaves out the condition that focus entered the surface.
  • Claim: the sheet follows isModal, is named by label or else the trigger's text, and sheetTitle adds a header with Done: verified (FR8); Escape and a screen tap lack the anchoring record's limits.
  • Claim: six gap lines state where the package differs today: verified, each naming its requirement and the mismatch; their content cannot be checked here because the React Native package is not in this repository.
  • Claim: no rejected alternatives, and writing rubric items R1 to R7 find nothing: verified against the record.
  • Claim: the canonical owner, affected current claims and overlapping open work are named: verified.
  • Claim: public text carries no internal context: verified.
  • Claim: the repository's knowledge check finds nothing in this record: verified.
  • Claim: the Prettier check is clean on the record: verified.
  • Claim: the whitespace diff check is clean: verified.
  • File: docs/specs/components/Popover/Popover.react-native.spec.md: findings above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

This draft record still needs an engineering owner's decision before it can be approved, and one part needs fixing either way.

Every requirement in component:react-native/Popover is new draft direction, so approval waits on an engineering owner commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. The reply on the Platform control line says an owner decision covers the record, but no approval is recorded at this head, and that decision still needs to settle the React Native-only sheetTitle, moving width and role out of Popover's core contract on React Native, and OQ1 (how a screen reader opens a popover whose trigger is content children).

Blocking:

  • DEC-3 (line 249) and the Platform control paragraph (line 186) name no Android control the record looked for, which spec:AST-093 FR2 requires in the record itself, since no current writing rule keeps that out (the spec-writing guide's R4 and the component template allow one line in a decision), a pull request thread cannot stand in for the record, and the earlier commit's positive sentence "On Android the candidates are PopupWindow and Compose's Popup (DEC-3); neither fits, so Android draws the surface in the app's layer", with DEC-3's reason, meets it without a Rejected: line.

Also worth fixing, none blocking: FR6 says nothing about TalkBack for a modal surface; FR5 drops spec:AST-116 FR15's "inside its anchor or trigger" and does not say what focus is on Android in touch mode; FR2's handed-back props leave out the popup type, the relationship and a route for id and isHidden; and the sheet's Done button needs a named catalog key.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: the record is stacked on the pull request that admits React Native platform records and merges after it: verified (that pull request is open and its branch is this one's base).
  • Claim: the record also depends on the presentation-host record and the React Native BottomSheet record and merges after them: verified (both are open pull requests).
  • Claim: the popover-anchoring record is current on main and absent from the base branch, so the record cites it in the body only: verified.
  • Claim: no open pull request records Popover on React Native: verified by a repository search.
  • Claim: core's props and defaults are kept and the web contract's props are not offered: verified (FR1).
  • Claim: the trigger is the caller's own control, with the anchor, toggle and expanded state handed back, and content children sit in a box that is never an element of its own: verified (FR2, FR3); the caller-rendered trigger record names its render prop differently and asks for more handed-back props.
  • Claim: iOS uses the system popover in every width and Android draws the surface in the app's layer: verified (FR4, DEC-3); the Android account names no platform control.
  • Claim: an outside touch closes the popover and reaches nothing under it, back and the VoiceOver escape close a modal popover and a non-modal one only while focus is inside it or on its trigger, and a non-modal sheet does not close on a tap: verified (FR5, FR8).
  • Claim: the surface's name is its first element, focus enters the first content control, hasAutoFocus={false} moves nothing, and on close only stranded focus moves, first to the element focused at open: verified (FR6).
  • Claim: the sheet follows isModal, is named by label or else the trigger's text, and sheetTitle adds a header with Done: verified (FR8).
  • Claim: six gap lines state where the package differs today: verified, each naming its requirement and the mismatch; their content cannot be checked here because the React Native package is not in this repository.
  • Claim: no rejected alternatives, and writing rubric items R1 to R7 find nothing: verified against the record; the rubric does not bar the Android finding's fix, which R4 allows as one line and a positive sentence also meets.
  • Claim: the canonical owner, affected current claims and overlapping open work are named: verified.
  • Claim: public text carries no internal context: verified.
  • Claim: the repository's knowledge check finds nothing in this record: verified.
  • Claim: the Prettier check is clean on the record: verified.
  • Claim: the whitespace diff check is clean: verified.
  • File: docs/specs/components/Popover/Popover.react-native.spec.md: findings above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot 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.

This draft record needs an engineering owner's decision before it can be approved; the Android platform-control account is now in the record, and nothing else blocks.

Every requirement in component:react-native/Popover is new draft direction, so approval waits on an engineering owner commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. That decision needs to settle the React Native-only sheetTitle, moving width and role out of Popover's core contract on React Native, and OQ1 (how a screen reader opens a popover whose trigger is content children).

Also worth fixing, none blocking: name PopupWindow and Compose's Popup in the Platform control paragraph so the Android account can be checked; say how TalkBack is held for a modal surface; say what React Native's handed-back trigger props carry beside the anchor, toggle and expanded state; say what focus is on Android without TalkBack for FR5; name the catalog key for the sheet's Done; and drop the citation of core's retired FR3 from FR4's basis.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the record is stacked on the pull request that admits React Native platform records and merges after it: verified (that pull request is open and its branch is this one's base).
  • Claim: the record also depends on the presentation-host record and the React Native BottomSheet record and merges after them: verified (both are open pull requests).
  • Claim: the popover-anchoring record is current on main and absent from the base branch, so the record cites it in the body only: verified.
  • Claim: no open pull request records Popover on React Native: verified by a repository search.
  • Claim: core's props and defaults are kept and the web contract's props are not offered: verified (FR1 lists every other prop core's Popover takes).
  • Claim: the trigger is the caller's own control, with the anchor, toggle and expanded state handed back, and content children sit in a box that is never an element of its own: verified (FR2, FR3); the caller-rendered trigger record names its render prop differently and asks for more handed-back props.
  • Claim: iOS uses the system popover in every width, and on Android no platform control fits because an anchored window holds content outside the app's layer, so Android draws the surface there: verified (FR4, DEC-3 and the Platform control paragraph).
  • Claim: an outside touch closes the popover and reaches nothing under it, back and the VoiceOver escape close a modal popover and a non-modal one only while focus is inside it or on or inside its anchor or trigger, and a non-modal sheet does not close on a tap: verified (FR5, FR8).
  • Claim: the surface's name is its first element, focus enters the first content control, hasAutoFocus={false} moves nothing, and on close only stranded focus moves, first to the element focused at open: verified (FR6).
  • Claim: the sheet follows isModal, is named by label or else the trigger's text, and sheetTitle adds a header with Done: verified (FR8).
  • Claim: six gap lines state where the package differs today: verified, each naming its requirement and the mismatch; their content cannot be checked here because the React Native package is not in this repository.
  • Claim: no rejected alternatives, and writing rubric items R1 to R7 find nothing: verified against the record.
  • Claim: the canonical owner, affected current claims and overlapping open work are named: verified.
  • Claim: public text carries no internal context: verified.
  • Claim: the repository's knowledge check finds nothing in this record: verified.
  • Claim: the Prettier check is clean on the record: verified.
  • Claim: the whitespace diff check is clean: verified.
  • File: docs/specs/components/Popover/Popover.react-native.spec.md: non-blocking findings above.

Automated review (maintainer link)

The component implements design requirements without copying their rationale.

Platform control (`spec:AST-093` FR2): on iOS, the system popover (FR4,
DEC-3). On Android none fits: an anchored window holds its content outside the

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.

Non-blocking: "an anchored window" describes Android's PopupWindow and Compose's Popup without naming them. spec:AST-093 FR2 asks the record to name "the platform control it looked for"; one phrase, "an anchored window (PopupWindow, Compose's Popup)", lets a reviewer of the Android package check the account against those APIs.

This branch was successfully deployed

1 active deployment
Preview — 89a45209 Deployed Nov 19, 2026 by vercel[bot]
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 Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant