Preparing search index...

    Function startLifecycleDiagnostics

    • Logs app foreground/background transitions and keyboard show/hide events at debug level.

      Temporary E2E triage aid: it separates "JS never saw the keyboard hide" from "the native keyboard stayed up", and shows when the app was backgrounded before the OS killed it. No-op in production builds, where the debug level is dropped anyway.

      Returns () => void

      Cleanup function removing every listener