Skip to content

spec(Item): React Native platform record - #12823

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

imdreamrunner wants to merge 5 commits into
chore/knowledge-react-native-platform-recordsfrom
spec/item-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-124 (#12562), spec:AST-130 (#12553), spec:AST-128 (#12558) and spec:AST-127 (#12555), and merges after those too. The rules it uses most (the swipe's numbers, the screen-reader reading, large text) are stated in the record itself.

Exact decision needed

How React Native runs Item: its props and the props it adds for a phone row, the row's press, hold and large-text behaviour, how it reads to VoiceOver and TalkBack, and how any row swipes (gesture, arbitration with scrollers and back gestures, on the native swipe row).

Existing authority searched

  • component:Item (docs/specs/components/Item/Item.spec.md): the align axis and first-line geometry (FR1–FR8), pressed paint (FR9) and the theme target's state attributes (FR10); no React Native rendering.
  • component:swift/Item (draft): the Swift row; it offers no swipe actions (its DEC-1), so it settles nothing for React Native.
  • spec:AST-057: swipe-action semantics, current. Its FR1 takes swipe actions as swipe from createSwipe; React Native takes swipeActions and swipeBehavior (OQ1).
  • family:navigation-destinations FR4: which destinations a link may open.
  • spec:AST-082 FR3, FR4, FR7, FR17 and spec:AST-093 FR2–FR4: one name, platform props, base props, icons, platform control and theme values.
  • spec:AST-124 (open draft): the native swipe row and the gesture owner view; its DEC-7 has drags run only in the native views, so where the native swipe row is absent (FR11) a row takes no swipe drag and keeps its entries as accessibility actions.
  • spec:AST-130 (open draft): haptics, the accessibility settings snapshot, the binary's named features, and React Native Linking.
  • spec:AST-128 (open draft): the action sheet a swipe entry's menu opens.
  • Open React Native records spec(TopNav): React Native platform record #12685 (TopNav), spec(TabBar): React Native platform record #12686 (TabBar) and spec(FileInput): React Native record with the photo library source #12597 (FileInput) for shape; none covers a row. The open List record (spec(List): React Native platform record #12819) covers the list that holds the rows; this record states only the row. Search for an existing Item React Native record or pull request: none.

Decision

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

  • React Native exports Item under its core name with core's props and meanings (spec:AST-082 FR3). label is words; the slots take React nodes; description takes words or a node. The web base props, target and rel stay in the web contract (FR1).
  • A phone row's additions, each with its reason in DEC-4: onLongPress, stateLabel, endValue, variant="destructive" (core's name for the concept, as on DropdownMenuItem), labelEndContent, the table density and the ItemGlyph part (FR7, FR9–FR11, FR13). The label takes the theme's body weight (FR12).
  • Layout, words, alignment and states come from theme tokens; the disabled look is color.textDisabled, never opacity; align keeps core's geometry, and first-line reads slot heights from layout (FR2–FR5).
  • A press runs onClick, then opens the href through LinkProvider or the host's link service; refused destinations are inert. iOS paints a delayed fill, Android a bounded ripple; a touch that becomes a drag activates nothing (FR6).
  • At accessibility text sizes, end content that is words and the end value move under the label (DEC-3, FR8).
  • A ListItem row or a bare Item with swipe entries swipes in any container (DEC-1); option, menu and radio rows take none (spec:AST-057 DEC-3). The swipe follows spec:AST-057 FR3–FR8, with the close rules, backGesture arbitration, the native swipe row and haptics in FR14–FR16. Where the native swipe row is absent, the row takes no swipe drag: every entry stays an accessibility action, and the row warns once in development (spec:AST-124 DEC-7).
  • Screen readers: an interactive row is one element; a static List row is one stop (DEC-2); every swipe entry is an accessibility action, and a row resting open under reveal keeps its entries as focusable buttons (spec:AST-057 AR1; AR1–AR9).
  • Where the React Native row differs from this record, component:Item or spec:AST-057 today, a gap line under Current-state impact says so: the onPress and isBackSwipeAllowed second props, labelWeight, the tone names, the status-mark lift under center, the swipe's release, overshoot and Reduce Motion rules, the commit warning, Escape, the swipe drawn in JavaScript where the native swipe row is absent or has no per-side drag rules, and the open row's hidden entries.
  • Two open questions for the owner: whether React Native takes core's swipe value (OQ1), and what an unset line limit means (OQ2).

Rejected alternatives

None recorded in the record.

Claim scope and non-goals

The record covers only what React Native adds to component:Item or does differently. Swipe semantics, link destinations, the native gesture views, haptics, the action sheet, and list markers, separators and grouping 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; the React Native implementation lives outside this repository. The gap lines state where that implementation differs from this record and the current core records.

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- or two-sentence reasons inside DEC-1–DEC-4 only.
  • R3 evidence naming a change: none; every basis cell names records, claims or decisions.
  • 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 and OQ2 are unanswered and keep their two options.
  • R7 project status (build status or work order): differences from this record, component:Item and spec:AST-057 are stated as FRn gap and ARn gap lines; "not yet released" appears only in the template's lifecycle field and readiness cell.

Scope

Components: Item (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 7:49pm 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, 7:58 PM 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 it also needs the corrections listed below.

Approval waits on an engineering owner approving the new React Native Item contract (FR1–FR16, AR1–AR9, DEC-1–DEC-4) and ruling on OQ1 (core's swipe value, or swipeActions and swipeBehavior, which core deprecates and removes in 0.8.0), OQ2 (what an unset line limit means) and whether the React Native-only props are admitted as named; any engineering owner, the author included, records that by commenting /approve-spec <full head SHA>.

Please fix these whatever the ruling:

  • FR14 states three swipe rules that contradict spec:AST-057 FR5 and DEC-9: settles jump under Reduce Motion instead of cross-fading, the row follows the finger at 0.35 past the commit point instead of running ahead of it, and a release is decided by position alone without the speed-first and two-entry rules.
  • AR4 hides an open row's panel from screen readers, while spec:AST-057 AR1 requires each entry of a row resting open to be a real, focusable button.
  • DEC-1 and FR14 let a row of any role swipe, while spec:AST-057 DEC-3 serves no option, menuitem* or radio row.
  • FR4 lifts a StatusDot or Badge to the label's first line under align="center", which changes the meaning component:Item gives center and which spec:AST-082 FR3 forbids a platform to change.
  • onPress silences onClick when both are set (FR6, ORD2), so the row offers a prop it ignores and adds a second word for core's onClick; drop onPress.
  • isBackSwipeAllowed (FR15, ORD4) is missing from the public contract, duplicates backGesture and is ignored when both are set; remove it.
  • tone renames the concept core calls variant (DropdownMenuItem already takes variant: 'default' | 'destructive'); call both props variant.
  • labelWeight (FR12) is a visual prop for one platform, which spec:AST-082 DEC-2 and spec:AST-093 FR4 rule out; take the weight from the theme or drop it.
  • The description says every difference from component:Item or spec:AST-057 has a gap line, but the first four items above have none; correct or list them, then reword the claim.

Smaller points, such as OQ1 not naming core's deprecation and the front matter leaving out the draft records the body cites, are noted inline.

Claims and files checked

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

  • Claim: stacked on the change that lets the knowledge check accept React Native records (#12592). Verified: the base branch is that pull request's head.
  • Claim: the record also cites four draft records and merges after them. Verified: each exists only in its open pull request.
  • Claim: component:Item covers alignment, pressed paint and state attributes, with no React Native rendering. Verified.
  • Claim: the Swift Item record offers no swipe actions. Verified (its DEC-1).
  • Claim: spec:AST-057 is current and takes swipe actions as swipe from createSwipe. Verified.
  • Claim: family:navigation-destinations FR4 decides which destinations a link may open. Verified.
  • Claim: spec:AST-082 and spec:AST-093 cover the name, platform props, base props, icons, platform control and theme values. Verified, except that labelWeight conflicts with spec:AST-082 DEC-2.
  • Claim: the gesture draft leaves what a component draws without the native view to the component. Verified in its open pull request.
  • Claim: no other React Native Item record or pull request exists. Verified by search.
  • Claim: every difference from component:Item or spec:AST-057 has a gap line. False: FR14's rules, AR4, DEC-1's role scope and FR4's center exception have none.
  • Claim: the record describes the React Native Item as built. Not verifiable: this repository holds no React Native Item code.
  • Claim: the record preserves equivalent internal implementations. Partly false: FR16 and Design relationships prescribe Animated's native driver and Pressable.
  • Claim: overlapping open work is named. Partly: the open List record (#12819) is not named.
  • Claim: writing rubric R1–R7 find nothing, and no rejected alternatives are recorded. Verified.
  • Claim: no internal context in public text. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified on the head.
  • File: docs/specs/components/Item/Item.react-native.spec.md: blocking findings above.

Automated review (maintainer link)

design_specs: []
architecture: [architecture:public-component-api]
contributing: []
system_specs: [spec:AST-057, spec:AST-082, spec:AST-093, spec:AST-112]

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.

The body cites spec:AST-124, spec:AST-127, spec:AST-128 and spec:AST-130 as governing (Contract at a glance, FR6, FR13, FR14, FR16, Native pieces), but system_specs leaves them out, and none of them exists on main or at this head yet. If this record lands before those pull requests, its references dangle.

@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 one correction stands whatever the ruling.

Approval waits on an engineering owner approving the React Native Item contract (FR1-FR16, AR1-AR9, DEC-1-DEC-4) and ruling on OQ1 (core's swipe value, or swipeActions and swipeBehavior, which core deprecates and removes in 0.8.0), OQ2 (what an unset line limit means) and whether the React Native-only props are admitted as named; any engineering owner, the author included, records that by commenting /approve-spec <full head SHA>.

  • Miss: the FR4 verification row still tests "the status-mark shift" with "a status dot and a badge beside a chevron" and fails "a moved chevron", and PR1 still measures "when a status mark is mounted", so both still require the lift under align="center" that FR4 now drops and component:Item FR1 forbids; test first-line's offset and an unmoved center slot instead.

The nine blocking findings from the last review are otherwise fixed at this head: FR14 now states AST-057's release, overshoot and Reduce Motion rules, AR4 keeps an open row's entries focusable, DEC-1 and FR14 exclude option, menu and radio rows, onPress, isBackSwipeAllowed and labelWeight are gone from the contract, tone is variant, and every remaining difference has a gap line. Smaller points (the always and atLeadingEdge back-gesture values reading alike, FR1's line-limit promise against FR3, the omitted system_specs entries, FR6's 150 ms press delay outside a scroll view) are noted inline.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: stacked on the change that lets the knowledge check accept React Native records. Verified: the base branch is that pull request's head.
  • Claim: the record cites four draft records and merges after them. Verified: each exists only in its own open pull request.
  • Claim: component:Item covers alignment, pressed paint and state attributes, with no React Native rendering. Verified.
  • Claim: the Swift Item record offers no swipe actions. Verified (its DEC-1).
  • Claim: the row-actions record is current and takes swipe actions as the value its constructor returns. Verified.
  • Claim: the navigation family decides which destinations a link may open. Verified.
  • Claim: the native-surfaces and native-guidelines records cover the name, platform props, base props, icons, platform control and theme values. Verified; the record now keeps the label's weight in the theme, as they require.
  • Claim: the gesture draft leaves what a component draws without the native view to the component. Verified in its open pull request.
  • Claim: no other React Native Item record or pull request exists. Verified by search.
  • Claim: where the row differs from the core record or the row-actions record, a gap line says so. Verified: thirteen gap lines, one per difference.
  • Claim: the record records observable behaviour and preserves equivalent internal implementations. Verified at this head: the earlier prescriptions of a specific animation driver and press primitive are gone.
  • Claim: the record describes the React Native Item as built. Not verifiable: this repository holds no React Native Item code.
  • Claim: overlapping open work is named. Verified: the open List record is named.
  • Claim: the writing rubric finds nothing and no rejected alternatives are recorded. Verified.
  • Claim: no internal context in public text. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified on this head.
  • File: docs/specs/components/Item/Item.react-native.spec.md: the finding above, plus the inline notes.

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 last blocking correction is fixed at this head.

Approval waits on an engineering owner approving the React Native Item contract (FR1-FR16, AR1-AR9, DEC-1-DEC-4) and ruling on OQ1 (core's swipe value, or swipeActions and swipeBehavior, which core deprecates and removes in 0.8.0), OQ2 (what an unset line limit means) and whether the React Native-only props are admitted as named; any engineering owner, the author included, records that by commenting /approve-spec <full head SHA>.

The FR4 verification row and PR1 now test core's center and first-line geometry, FR1 leaves the unset line limit to OQ2, and FR15 says what atLeadingEdge does on a row. Two smaller points stay open in their inline threads: the front matter's related specs omit the four draft records the body cites, and FR6 applies the 150 ms press delay outside scroll views too.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: stacked on the change that lets the knowledge check accept React Native records. Verified: the base branch is that pull request's head.
  • Claim: the record also cites four draft records and merges after them. Verified: each exists only in its own open pull request.
  • Claim: the core Item record covers alignment, pressed paint and state attributes, with no React Native rendering. Verified.
  • Claim: the Swift Item record offers no swipe actions. Verified (its DEC-1).
  • Claim: the row-actions record is current and takes swipe actions as the value its constructor returns. Verified.
  • Claim: the navigation family decides which destinations a link may open. Verified.
  • Claim: the native-surfaces and native-guidelines records cover the name, platform props, base props, icons, platform control and theme values. Verified.
  • Claim: the gesture draft leaves what a component draws without the native view to the component. Verified in its open pull request.
  • Claim: the other open React Native records named are for other components, and no other React Native Item record or pull request exists. Verified: they are the TopNav, TabBar, FileInput and List records, and a search finds no other Item record.
  • Claim: the Decision list (core name and props, the seven phone-row additions with their reasons, the theme-token look, press order, large text, swipe scope and rules, screen-reader reading, two open questions). Verified against FR1-FR16, AR1-AR9, DEC-1-DEC-4, OQ1 and OQ2.
  • Claim: where the row differs from the core record or the row-actions record, a gap line says so. Verified: thirteen gap lines, one per listed difference.
  • Claim: the record states observable behaviour and preserves equivalent implementations. Verified.
  • Claim: the React Native implementation lives outside this repository. Verified: this repository holds no React Native Item code, so the gap lines themselves are the author's statement.
  • Claim: the canonical owners and overlapping open work are named. Verified: the ownership lines name each owner and the description names the open List record.
  • Claim: the writing rubric finds nothing and no rejected alternatives are recorded. Verified.
  • Claim: no internal context in public text. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified on this head.
  • File: docs/specs/components/Item/Item.react-native.spec.md: no blocking finding; two non-blocking notes (the front matter's related specs, FR6's press delay).

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 one correction from this push stands whatever the ruling.

Approval waits on an engineering owner approving the React Native Item contract (FR1–FR16, AR1–AR9, DEC-1–DEC-4) and ruling on OQ1 (core's swipe value, or swipeActions and swipeBehavior, which core deprecates and removes in 0.8.0), OQ2 (what an unset line limit means) and whether the React Native-only props are admitted as named; any engineering owner, the author included, records that by commenting /approve-spec <full head SHA>.

Blocking

  • FR16 now has a row take no swipe drag where the native swipe row is absent and read backGesture as unset where that row has no per-side drag rules, so swipeBehavior, isFullSwipeAllowed and backGesture are accepted and ignored there, which spec:AST-082 FR3 forbids and which contradicts this record's own FR14, DEC-1 and Review checks; keep a drawn swipe there as the previous revision did, or raise the fallback as an open question, and make FR14, DEC-1 and the summary rows state the same rule as FR16.

Two smaller points stay open in their inline threads: the front matter's related specs omit the four draft records the body cites, and FR6 applies the 150 ms press delay outside scroll views too. The earlier OQ1 note is addressed.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: stacked on the change that lets the knowledge check accept React Native records. Verified: the base branch is that pull request's head.
  • Claim: the record also cites four draft system records and merges after them. Verified: each exists only in its own open pull request.
  • Claim: the rules it uses most (the swipe's numbers, the screen-reader reading, large text) are stated in the record itself. Verified in FR8, FR14 and AR1–AR9.
  • Claim: the core Item record covers alignment, pressed paint and state attributes, with no React Native rendering. Verified.
  • Claim: the Swift Item record offers no swipe actions. Verified (its DEC-1).
  • Claim: the row-actions record is current and takes swipe actions as the value its constructor returns. Verified.
  • Claim: the navigation family decides which destinations a link may open. Verified.
  • Claim: the native-surfaces and native-guidelines records cover the name, platform props, base props, icons, platform control and theme values. Verified.
  • Claim: the gesture draft runs drags only in the native views, so a row without the native swipe row takes no drag and keeps its entries as accessibility actions. Verified in its open pull request; that draft is not yet authority, and the rule it brings here is the blocking finding.
  • Claim: the system-modules draft covers haptics, the accessibility settings, the binary's named features and the link service; the menus draft covers the action sheet. Verified in their open pull requests.
  • Claim: the other open React Native records named are for other components, the open List record covers the list, and no other React Native Item record or pull request exists. Verified: they are the TopNav, TabBar, FileInput and List records, and a search finds no other.
  • Claim: the Decision list (core name and props, the seven phone-row additions with their reasons, the theme-token look, press order, large text, swipe scope and rules, the native-row-only swipe, screen-reader reading, two open questions). Verified against FR1–FR16, AR1–AR9, DEC-1–DEC-4, OQ1 and OQ2.
  • Claim: where the row differs from the core record or the row-actions record, a gap line says so. Verified: fourteen gap lines, one per listed difference.
  • Claim: the record states observable behaviour and preserves equivalent implementations. Verified.
  • Claim: the React Native implementation lives outside this repository. Verified: this repository holds no React Native Item code, so the gap lines are the author's statement.
  • Claim: the canonical owners and overlapping open work are named. Verified: the ownership lines name each owner and the description names the open List record.
  • Claim: the writing rubric finds nothing and no rejected alternatives are recorded. Verified: no rejected-alternative lines, no pull request references, and project status only in the template's lifecycle field.
  • Claim: no internal context in public text. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified on this revision.
  • File: docs/specs/components/Item/Item.react-native.spec.md: one blocking finding (FR16's fallbacks); two non-blocking notes (the front matter's related specs, FR6's press delay).

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; no blocking correction remains at this head.

Approval waits on an engineering owner approving the React Native Item contract (FR1–FR16, AR1–AR9, DEC-1–DEC-4) and ruling on OQ1 (core's swipe value, or swipeActions and swipeBehavior, which core deprecates and removes in 0.8.0), OQ2 (what an unset line limit means), whether the React Native-only props are admitted as named, and whether spec:AST-082 FR3 ("A platform never offers a prop it does not fully honor") allows FR16's binary built without the native swipe row, where swipeBehavior, isFullSwipeAllowed and backGesture do nothing. Any engineering owner, the author included, records that by commenting /approve-spec <full head SHA>.

FR14, DEC-1 and the summary rows now state the same native-row swipe as FR16, so the earlier self-contradiction is fixed. Four smaller record fixes remain:

  • Review checks and the FR1 verification row reject any accepted-and-ignored prop, with no exception for FR16's binary without the native swipe row; make them agree with FR16 once the owner rules.
  • FR16 now cites spec:AST-112 FR3, but its Basis cell and the Governing rules row leave it out.
  • The front matter's related specs omit the four draft records the body cites (open in its inline thread).
  • FR6 applies the 150 ms press delay outside scroll views too, where spec:AST-094 FR11 limits it to scroll views (open in its inline thread).
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: stacked on the change that lets the knowledge check accept React Native records. Verified: the base branch is that pull request's head.
  • Claim: the record also cites four draft system records and merges after them. Verified: each exists only in its own open pull request.
  • Claim: the rules it uses most (the swipe's numbers, the screen-reader reading, large text) are stated in the record itself. Verified in FR8, FR14 and AR1–AR9.
  • Claim: the core Item record covers alignment, pressed paint and state attributes, with no React Native rendering. Verified.
  • Claim: the Swift Item record offers no swipe actions. Verified (its DEC-1).
  • Claim: the row-actions record is current and takes swipe actions as the value its constructor returns. Verified.
  • Claim: the navigation family decides which destinations a link may open. Verified.
  • Claim: the native-surfaces and native-guidelines records cover the name, platform props, base props, icons, platform control and theme values. Verified.
  • Claim: the gesture draft runs drags only in the native views, so a row without the native swipe row takes no drag and keeps its entries as accessibility actions. Verified in its open pull request; that draft is not yet authority, and the owner rules on the rule it brings here.
  • Claim: the native swipe row links in every app by default, so only a binary built without it lacks the swipe. Verified against the draft foundation record, which links the gesture views in every app's core; a draft, not yet authority.
  • Claim: the system-modules draft covers haptics, the accessibility settings, the binary's named features and the link service; the menus draft covers the action sheet. Verified in their open pull requests.
  • Claim: the other open React Native records named are for other components, the open List record covers the list, and no other React Native Item record or pull request exists. Verified: a search finds only this pull request.
  • Claim: the Decision list (core name and props, the seven phone-row additions with their reasons, the theme-token look, press order, large text, swipe scope and rules, the native-row-only swipe, screen-reader reading, two open questions). Verified against FR1–FR16, AR1–AR9, DEC-1–DEC-4, OQ1 and OQ2.
  • Claim: where the row differs from the core record or the row-actions record, a gap line says so. Verified: fourteen gap lines, one for each listed difference.
  • Claim: the record states observable behaviour and preserves equivalent implementations. Verified.
  • Claim: the React Native implementation lives outside this repository. Verified: this repository holds no React Native Item code, so the gap lines are the author's statement.
  • Claim: the canonical owners and overlapping open work are named. Verified: the ownership lines name each owner and the description names the open List record.
  • Claim: the writing rubric finds nothing and no rejected alternatives are recorded. Verified: no rejected-alternative lines, no pull request references, and project status only in the template's lifecycle field.
  • Claim: no internal context in public text. Verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified on this revision.
  • File: docs/specs/components/Item/Item.react-native.spec.md: no blocking finding; four non-blocking notes (the Review checks and FR1 verification rows, FR16's basis, the front matter's related specs, FR6's press delay).

Automated review (maintainer link)

| End-user impact | A person gets rows that press, hold and swipe like the platform's list rows wherever they sit, hears each List row as one screen-reader stop, and reaches every swipe verb as an accessibility action. Large text wraps a row's words instead of cutting them. |
| Builder impact | Slots take React nodes. The web base props, `target`, `rel` and core's `swipe` value are not offered (OQ1). A row's look comes only from the theme. |
| Compatibility/readiness | Not yet released; additive. Draft. Where the row differs from `component:Item` or `spec:AST-057`, a gap line under Current-state impact says so. |
| Review checks | Reject a visual value not from the theme, opacity for the disabled look, a static List row read as several stops, a swipe verb with no accessibility action, a swipe on an option, menu or radio row, a swipe that takes a vertical drag, a press that activates after its touch became a drag, a link opened for a refused destination, end words cut at large text, a swipe drawn in JavaScript, or a prop the row accepts and ignores. |

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: this row rejects "a prop the row accepts and ignores", but FR16 lets swipeBehavior, isFullSwipeAllowed and backGesture do nothing in a binary built without the native swipe row, and backGesture on a native swipe row without per-side drag rules. The FR1 verification row (line 299) says the same. Once the owner rules on FR16, make both say what FR16 says.

| FR13 | `ItemGlyph` MUST draw a square tile with a `monogram` or an `icon`, `max(size.elementMd, the label line + space.s2)` on a side, so it grows with the text size. Its tile is `color.backgroundMuted` in `radius.inner`, with letters in the label type, semibold, in `color.textSecondary`, or an `Icon` in `color.iconSecondary` (`spec:AST-082` FR17). A `variant` (core's colour-variant names) draws the tile in `color.background<Variant>` with `color.text<Variant>` letters or a `color.icon<Variant>` icon. Item knows the tile's width without a layout pass, so a `List` whose separators start at the text places them from the first frame. | DEC-4 | verify |
| FR14 | A `ListItem` row or a bare `Item` with swipe entries that is neither disabled nor hidden MUST swipe in any container on the native swipe row (DEC-1, FR16), as `spec:AST-057` FR3–FR5, FR7 and FR8 state. The option, menu and radio rows that `Selector`, `DropdownMenu`, `RadioList` and `CheckboxList` render with Item take no swipe entries (`spec:AST-057` DEC-3). `swipeActions` holds the `leading` and `trailing` entries, outermost last; each is `{id?, label, icon?, onActivate, isDisabled?, variant?, hasRemoval?, menu?}`. The axis is decided once, after `space.s2` of travel, and a mostly vertical drag stays the scroller's. Under `reveal` a release goes by its speed first, then opens the row past half the panel's width and closes it short of that; a flick never fires an entry. Dragged past the confirm point (the side's panel plus 48 dp, or half the row, whichever is more), the row runs ahead toward its far edge with the outermost entry covering its place, and a lift there fires the outermost entry once the row has slid out; on a side with two or more entries a full swipe confirms only as `spec:AST-057` DEC-9 says. Under `commit` only a lift past the confirm point fires, and nothing rests. After an entry fires, the row returns unless the entry has `hasRemoval`. Settles use the theme's `quick` spring from the release speed, and a slide-out passes the edge by 24 dp over 200 ms; under Reduce Motion the row reaches its resting place with no travel or spring and cross-fades (`spec:AST-057` FR5). With `isFullSwipeAllowed={false}` a long swipe only reveals and an entry fires on a tap, and `commit` with it warns in development and reveals. An entry with a `menu` opens an action sheet titled by the entry's label instead of firing (`spec:AST-128` FR4), with destructive choices in red. | `spec:AST-057` FR3–FR5, FR7, FR8, DEC-3, DEC-9; DEC-1 | verify |
| FR15 | An open row MUST close on a touch outside it, on a touch that starts another swipe row, on a vertical drag on it, on a tap on its content, on Escape from a hardware keyboard, and when an entry fires. A touch that closes a row does only that: a press it lands on does not activate. Screen-reader actions are not touches. A closed row owns a horizontal drag toward a side with entries, and an open or moving row owns both directions. Inside a vertical list that took the touch before the row's slop, the row still follows a horizontal drag; inside a horizontal scroller, the drags the row does not own stay the scroller's. Once the row holds a drag, it does not hand it over. `backGesture` decides the back direction for a closed row: unset, the row keeps a drag toward a side with entries, and the content-wide back swipe yields; `always` and `atLeadingEdge` give the back direction to the back gesture, alike on a row, which has no scroll edge; `never` keeps it even without entries on that side. An open row closes first under every value, and on iOS the screen-edge back swipe always goes back. | `spec:AST-057` FR6, FR7; `spec:AST-124` FR3 | verify |
| FR16 | Where the native swipe row is present, the swipe MUST run on it (`spec:AST-124` FR6): the pan, the axis gate, the release choice with FR14's numbers, the spring, the slide-out, interruption at touch-down, Reduce Motion and right-to-left all run on the UI thread, and JavaScript hears only the swipe's begin, threshold, settle and commit. A row with `backGesture` runs on a native swipe row with per-side drag rules, a named feature (`spec:AST-130` FR8); on a native swipe row without them, the row keeps the rule for an unset `backGesture` and warns once in development. The native swipe row is part of the native half that links in every app by default (`spec:AST-112` FR3); in a binary built without it (`spec:AST-124` FR11, DEC-7), the row takes no swipe drag: every enabled entry stays reachable as one of its accessibility actions (AR4), and the row warns once in development. A drag across the commit point plays the `threshold` haptic each way, and a full swipe that fires plays `commit` (`spec:AST-130` FR6); a tap on an entry and an accessibility action play none. | `spec:AST-124` FR1, FR6, FR11, FR13, DEC-7; `spec:AST-130` FR6, FR8 | verify |

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: FR16 now rests on spec:AST-112 FR3 ("links in every app by default"), but its Basis cell lists only spec:AST-124 and spec:AST-130, and the Governing rules row (line 45) leaves spec:AST-112 out too. Add it to both.

This branch was successfully deployed

1 active deployment
Preview — f50800c0 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