Skip to content

AppUpdateBoundary's "last sibling" comment overstates the guarantee #704

Closed

Description

@bobodread876

Found during the review of #701. Not blocking — the outcome is recoverable — but the comment claims more than the code delivers, and a comment that overstates a guarantee is worse than none.

What the comment says

AppUpdateBoundary documents that it pins the blocking modal as the last sibling, so paint order puts it on top. That matters because it renders with coverScreen={false} (a workaround for the Fabric modal-host bug, #545), meaning it paints inline rather than through the native modal host — so sibling order is z-order.

What actually happens

NotificationsProvider renders {children} and then its own <CustomModal>, which uses the default coverScreen and therefore the native host. The "last sibling" guarantee only holds inside the boundary's own subtree — a notification modal will still paint over the gate.

Why it is not urgent

The notification modal is dismissible, so nobody ends up stranded: dismiss it and the gate is underneath. That is the whole reason this is a comment fix and not a blocker.

Fix

Narrow the comment to what is true — the gate is last within its own subtree, and a natively-hosted modal from an ancestor provider can still paint above it. If the stronger guarantee is actually wanted, the gate has to move above NotificationsProvider, which is a structural change worth its own PR and its own argument.

Related

Also from the same review, and the reason this matters more than a normal comment nit: no test exercises the real react-native-modal render path. Every spec mocks the library wholesale, so coverScreen={false} is only ever asserted as a prop value — never at app-root position, where the wrapper's absolute box resolves against a different ancestor than for the existing caller inside a screen. The Android New-Architecture device check tracked alongside #701 is what actually validates this.

🤖 Generated with Claude Code

Activity

  1. islandbitcoin commented on Oct 10, 2026

    @islandbitcoin
    Contributor

    Fixed in #712: the AppUpdateBoundary comment now states the gate is last only among inline siblings, that NotificationsProvider's native-host CustomModal can paint over it (dismissible), and names the two real fixes as out of scope.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions