Reference
cross_platform_verify
Compare cached iOS and Android accessibility snapshots from device_snapshot. Authoritative cross-target comparison is currently unsupported (rn-workflow § “Authority bounds — one copy, one target”). Optional scanDir auto-discovers testIDs. Returns a per-element PASS/FAIL table or missing-snapshot evidence.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
elements | array | No | List of testIDs or labels to check on both platforms. Optional if scanDir is provided. | ||
scanDir | string | No | Directory to scan for testID=”…” props in .tsx/.jsx/.ts/.js files. Auto-discovers elements. Merges with elements[] if both provided. | ||
matchBy | enum: testID | label | any | No | 'any' | Match strategy: testID (exact identifier match), label (substring in accessibility label), any (try both) |
cross_platform_verify()