Skip to content

iOS keyboard status takes ~1.4 s, about 5x a snapshot #4641

Closed

Description

@thymikee

Purpose

keyboard status on iOS takes about 1.4 s per call, roughly 5× a full snapshot of the same screen. Callers that want to ask "is the keyboard up, and what is its return key" before acting pay more than a snapshot would cost them. Expo Explore kept its accessibility-tree heuristics for this reason.

Observed (0.21.39, iPhone Air simulator, iOS 27.0, warm daemon, keyboard up, wall clock per CLI call including node start)

  • keyboard status: median 1397 ms, range 1367–1539 ms (n=8).
  • snapshot: median 260 ms, range 241–331 ms (n=8).

Required behavior

  • Find where the time goes: runner query strategy, extra settle or idle waits, repeated tree reads. Include a timing breakdown in the PR.
  • Bring keyboard status to at most snapshot cost on the same screen, or explain the floor with evidence.
  • Keep the output contract (visible, returnKey, returnKeyLabel) unchanged.

Done when

Before/after timings at the same n on a simulator are recorded in the PR, and the iOS keyboard tests pass.

Activity

  1. apex-sentinel-staging commented on Nov 17, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    It reports existing CLI performance as too slow with concrete timings, environment, and a measurable target, making it an actionable performance defect rather than a new capability request.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  2. added
    bug
    on Nov 18, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions