> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quiesco.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# アクション

> ユーザーと同じようにタップ、入力、スクロール、スワイプ、ドラッグし、前の画面に戻り、ディープリンクを開く。

アクションはユーザーが行う操作を再現します。`native`モード（アプリに`@quiesco/native`がある場合のデフォルト）では実際のタッチとキーボード入力です。`js`モードでは代わりにコンポーネントのコールバックを呼びます（[呼び出しのオプション](https://docs.quiesco.dev/ja/api.md#call-options)を参照）。どのアクションも前後でアプリがアイドルになるのを待ち、表示されているターゲットがちょうど1つ必要です（[要素を見つける](https://docs.quiesco.dev/ja/api.md#finding-elements)）。

座標は論理単位です（iOSではpt、Androidではdp、WebではCSS px）。

## タップ

### `tap(target, options?)`

```ts theme={null}
tap(
  target: MatcherInput,
  options?: TapOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`TapOptions`](./api-types#tapoptions) · [`ElementSummary`](./api-types#elementsummary)

要素の中心をタップします。スクロールビューや`overflow`の祖先に一部が切り取られた要素は、見えている部分の中心をタップします。

```ts theme={null}
await app.tap('save');

// 要素内の一点。左上隅から
await app.tap('map', { point: { x: 40, y: 120 } });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `point` | 中心 | 中心の代わりにタップする、要素自身の座標系での`{ x, y }` |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `doubleTap(target, options?)`

```ts theme={null}
doubleTap(
  target: MatcherInput,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

1つのジェスチャーで2回タップします。

```ts theme={null}
await app.doubleTap('photo');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `multiTap(target, count, options?)`

```ts theme={null}
multiTap(
  target: MatcherInput,
  count: number,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

1つのジェスチャーで`count`回タップします。

```ts theme={null}
// 3回タップして隠しデバッグメニューを開く
await app.multiTap('version-label', 3);
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `longPress(target, options?)`

```ts theme={null}
longPress(
  target: MatcherInput,
  options?: LongPressOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`LongPressOptions`](./api-types#longpressoptions) · [`ElementSummary`](./api-types#elementsummary)

要素を押し続けます。

```ts theme={null}
await app.longPress('message');

await app.longPress('message', { durationMs: 1500, point: { x: 10, y: 10 } });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `durationMs` | `800` | 押し続ける時間 |
| `point` | 中心 | 要素自身の座標系での`{ x, y }` |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `tapAt(point, options?)`

```ts theme={null}
tapAt(point: Point, options?: ActionOptions): Promise<void>
```

型： [`Point`](./api-types#point) · [`ActionOptions`](./api-types#actionoptions)

画面上の一点（ウィンドウ座標）をタップします。そこに何があっても構いません。

```ts theme={null}
// ボトムシートの上側をタップして閉じる
await app.tapAt({ x: 200, y: 100 });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `longPressAt(point, options?)`

```ts theme={null}
longPressAt(point: Point, options?: LongPressAtOptions): Promise<void>
```

型： [`Point`](./api-types#point) · [`LongPressAtOptions`](./api-types#longpressatoptions)

画面上の一点（ウィンドウ座標）を押し続けます。

```ts theme={null}
await app.longPressAt({ x: 200, y: 400 }, { durationMs: 1000 });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `durationMs` | `800` | 押し続ける時間 |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

## テキスト入力

### `type(target, text, options?)`

```ts theme={null}
type(
  target: MatcherInput,
  text: string,
  options?: TypeOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`TypeOptions`](./api-types#typeoptions) · [`ElementSummary`](./api-types#elementsummary)

入力欄にフォーカスし、既にある内容の後ろに`text`を入力します。`native`モードではテキストがシステムのIMEを経由するので、どの言語でも入力できます。iOSとAndroidではテキスト全体が一度に届き、Webでは1文字ごとに1キーが送られます。

```ts theme={null}
await app.type('email', 'ann@example.com');

// 1文字ずつ：デバウンス付き検索、入力マスク、onKeyPress向け
await app.type('search', 'milk', { perCharacter: true });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `perCharacter` | `false` | 1文字ずつ入力し、アプリがキー入力を1回ずつ受け取るようにする。呼び出しは最後にアイドルを待つ |
| `intervalMs` | `80` | `perCharacter`のとき：文字と文字の間隔 |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `replaceText(target, text, options?)`

```ts theme={null}
replaceText(
  target: MatcherInput,
  text: string,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

入力欄のテキスト全体を一度に置き換えます。

```ts theme={null}
await app.replaceText('email', 'bob@example.com');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `clear(target, options?)`

```ts theme={null}
clear(
  target: MatcherInput,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

入力欄を空にします。

```ts theme={null}
await app.clear('search');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `pressKey(target, key, options?)`

```ts theme={null}
pressKey(
  target: MatcherInput,
  key: KeyName,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`KeyName`](./api-constants#list) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

Returnキー（`'enter'`）または`'backspace'`をフィールドに送ります。`'enter'`は1行の入力欄では送信し、複数行の入力欄では改行を追加します。フィールドが存在しさえすればよく、キーボードのReturnキーに手が届かない状況でもキーはフィールドに届きます。

```ts theme={null}
await app.type('search', 'milk');
await app.pressKey('search', KeyName.enter);

await app.pressKey('code-input', KeyName.backspace);
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `dismissKeyboard(options?)`

```ts theme={null}
dismissKeyboard(options?: ActionOptions): Promise<void>
```

型： [`ActionOptions`](./api-types#actionoptions)

ソフトウェアキーボードを閉じます。

```ts theme={null}
await app.type('notes', 'Call before noon');
await app.dismissKeyboard();
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

## スクロール

### `scroll(target, direction, options?)`

```ts theme={null}
scroll(
  target: MatcherInput,
  direction: Direction,
  options?: ScrollOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`Direction`](./api-constants#list) · [`ScrollOptions`](./api-types#scrolloptions) · [`ElementSummary`](./api-types#elementsummary)

スクロールビューをスクロールします。`'down'`で下のコンテンツが現れます。`native`モードでは指をドラッグして徐々に減速させて止めるので、慣性スクロールせずにコンテンツがおよそ`distance`だけ動きます（システムのタッチスロップの分だけ短くなります。iOSで約10pt、Androidで約7%）。

```ts theme={null}
await app.scroll('feed', Direction.down);

await app.scroll('feed', Direction.down, { distance: 300, from: { x: 0.5, y: 0.8 } });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `distance` | — | スクロールする距離（論理単位） |
| `from` | — | 指の開始点。要素内で0–1に正規化した位置 |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `scrollTo(container, target, options?)`

```ts theme={null}
scrollTo(
  container: MatcherInput,
  target: MatcherInput,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

`target`の中心（タップが当たる位置）が見えるまで`container`をスクロールします。下、次に上へ。横方向のリストでは右、次に左へ。1ステップの移動は1画面分より短いので、要素を飛ばしません。コンテンツの端まで来ても中心が切り取られたままのターゲットは、そのまま返します。

```ts theme={null}
await app.scrollTo('settings-list', 'sign-out');
await app.tap('sign-out');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `scrollToEdge(target, edge, options?)`

```ts theme={null}
scrollToEdge(
  target: MatcherInput,
  edge: Edge,
  options?: ActionOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`Edge`](./api-constants#list) · [`ActionOptions`](./api-types#actionoptions) · [`ElementSummary`](./api-types#elementsummary)

`'top'`、`'bottom'`、`'left'`、`'right'`のいずれかの端までスクロールします。スクロールに応じて行を追加描画する仮想化リストは、伸びていく間も追従します（`native`モードでは実際のフリックで）。

```ts theme={null}
await app.scrollToEdge('feed', Edge.bottom);
await app.expectVisible({ text: 'No more posts' });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `scrollToIndex(list, index, options?)`

```ts theme={null}
scrollToIndex(
  list: MatcherInput,
  index: number,
  options?: ScrollToIndexOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`ScrollToIndexOptions`](./api-types#scrolltoindexoptions) · [`ElementSummary`](./api-types#elementsummary)

`FlatList` / `FlashList`の`index`行目を表示します。`getItemLayout`がなくても動作します。

```ts theme={null}
await app.scrollToIndex('contacts', 120);

// 120行目をリストの中央に
await app.scrollToIndex('contacts', 120, { viewPosition: 0.5 });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `viewPosition` | `0` | 行が来る位置：`0`は上端、`0.5`は中央、`1`は下端 |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

`scrollTo`、`scrollToEdge`、`scrollToIndex`は複数のステップ（最大60）に分けて動き、各ステップでアプリが落ち着くまで、呼び出しのタイムアウトを上限に待つことがあります。

## ジェスチャー

### `swipe(target, direction, options?)`

```ts theme={null}
swipe(
  target: MatcherInput,
  direction: Direction,
  options?: SwipeOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`Direction`](./api-constants#list) · [`SwipeOptions`](./api-types#swipeoptions) · [`ElementSummary`](./api-types#elementsummary)

慣性のあるスワイプです。`direction`は指の動く向きです。

```ts theme={null}
// 行の削除ボタンを出す
await app.swipe({ id: 'todo-row', index: 0 }, Direction.left);

await app.swipe('carousel', Direction.left, { speed: Speed.fast, distance: 250 });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `speed` | `'normal'` | `'slow'`、`'normal'`、`'fast'`のいずれか |
| `distance` | | 指が動く距離 |
| `from` | | 指の開始点。要素内で0–1に正規化した位置 |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `drag(target, to, options?)`

```ts theme={null}
drag(
  target: MatcherInput,
  to: MatcherInput | { point: Point },
  options?: DragOptions,
): Promise<ElementSummary | undefined>
```

型： [`MatcherInput`](./api-types#matcherinput) · [`Point`](./api-types#point) · [`DragOptions`](./api-types#dragoptions) · [`ElementSummary`](./api-types#elementsummary)

要素を長押しし、`to`の中心（要素）または`{ point }`（ウィンドウ座標）まで動かして離します。実際のタッチが必要なので、`js`モードでは使えません。

```ts theme={null}
// 並べ替え：最初の行を3行目にドラッグする
await app.drag({ id: 'todo-row', index: 0 }, { id: 'todo-row', index: 2 });

await app.drag('pin', { point: { x: 160, y: 420 } }, { holdMs: 300, speed: Speed.slow });
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `holdMs` | `800` | 動かし始める前に押し続ける時間 |
| `speed` | `'normal'` | `'slow'`、`'normal'`、`'fast'`のいずれか |
| `timeoutMs` | `sync.timeoutMs`（10秒） | 対象の要素が現れ、アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

ピンチ、回転など複数の指を使うジェスチャーは[マルチタッチジェスチャー](https://docs.quiesco.dev/ja/api-gestures.md)にあります。

## ナビゲーション

### `goBack(options?)`

```ts theme={null}
goBack(options?: ActionOptions): Promise<void>
```

型： [`ActionOptions`](./api-types#actionoptions)

各プラットフォームでユーザーが行うのと同じ方法で前の画面に戻ります。Androidは戻るボタン（キーボードは先に閉じる）、Webはブラウザーの戻る、iOSはナビゲーションバーの戻るボタン、なければ左端からのスワイプです。Expo Routerを使うアプリでは、ルートが変わらなければ失敗します。

```ts theme={null}
await app.tap({ text: 'Buy milk' });
await app.goBack();
await app.expectVisible('todo-list-screen');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `pressBack(options?)`

```ts theme={null}
pressBack(options?: ActionOptions): Promise<void>
```

型： [`ActionOptions`](./api-types#actionoptions)

Androidの戻るボタン、WebではブラウザーのBackです。iOSでは使えません（`ACTION_NOT_SUPPORTED`）。どのプラットフォームでも動くテストには`goBack()`を使ってください。

```ts theme={null}
// Android：戻るボタンでボトムシートを閉じる
await app.pressBack();
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

### `openUrl(url, options?)`

```ts theme={null}
openUrl(url: string, options?: ActionOptions): Promise<void>
```

型： [`ActionOptions`](./api-types#actionoptions)

ディープリンクを開きます。iOSではアプリ内で、Androidでは`am start`で、Webではアドレスバーで開きます。アプリがバックグラウンドにあるとき（`app.device.sendToBackground()`）は、ほかのアプリからと同じようにアプリの外からリンクを開きます。iOSではシステムの「“…”で開きますか？」に答えます。アプリが前面に来てアイドルになった時点で解決します。

```ts theme={null}
await app.openUrl('myapp://todos/42');
await app.expectText('detail-title', 'Buy milk');
```

| オプション | デフォルト | 意味 |
| - | - | - |
| `timeoutMs` | `sync.timeoutMs`（10秒） | アプリがアイドルになるまで待つ最大時間 |
| `sync` | `true` | `false`：この呼び出しの前後でアプリのアイドルを待ちません（[共通オプション](https://docs.quiesco.dev/ja/api.md#call-options)） |
| `mode` | `actions.mode` | `'native'`：実際のタッチとキーボード入力、`'js'`：コンポーネントのコールバックを呼び出します |

## その他の入力

値を持つコントロール（スイッチ、スライダー、ピッカー、日付ピッカー）は`setValue`と`adjustSlider`で設定し、`accessibilityAction`はスクリーンリーダーのアクションを実行します。[値コントロール](https://docs.quiesco.dev/ja/api-value-controls.md)を参照してください。

## `js`モードでは

アクションが画面をタッチする代わりにコールバックを呼ぶ場合：

* 座標を指定したタップは、その位置の最前面の要素を押します。
* `onPress`のないスイッチへのタップは、`onValueChange`で切り替えます。
* `pressKey`は`onSubmitEditing` / `onKeyPress`を呼びます。
* `scrollToEdge`はスクロールオフセットを設定します。
* `from`は無視されます。
* `drag`は実際のタッチが必要なため、サポートされません。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.