// rnx mode screenshot — toggle the "screenshot mode" chrome overlay // in the running rnx sim. orthogonal to `--no-shell` on the // `screenshot` command: this hides the DOM browser chrome (rail, menubar, // window controls) while still rendering the iOS shell inside the canvas. // // wraps the existing `toggle-screenshot-mode` shell action so the CLI // stays behavior-compatible with the menu item / keyboard shortcut. import { rnxExit } from '../run-rnx' import { runShellBooleanMode, type ShellBooleanModeOptions } from './shell-boolean-mode' export async function runScreenshotMode(args: string[], opts: ShellBooleanModeOptions) { if (args.includes('--help') || args.includes('-h')) { console.log(` rnx mode screenshot — toggle the screenshot-mode chrome overlay usage: rnx mode screenshot [on|off|toggle] arguments: on enable screenshot mode (enables showFrame if needed) off disable screenshot mode toggle flip the current state (default) examples: rnx mode screenshot rnx mode screenshot on rnx mode screenshot off `) rnxExit(0) } await runShellBooleanMode(args, opts, { modeKey: 'screenshotMode', displayName: 'screenshot-mode', actionId: 'toggle-screenshot-mode', }) }