Skip to content

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.

NameTypeRequiredDefaultConstraintsDescription
elementsarrayNoList of testIDs or labels to check on both platforms. Optional if scanDir is provided.
scanDirstringNoDirectory to scan for testID=”…” props in .tsx/.jsx/.ts/.js files. Auto-discovers elements. Merges with elements[] if both provided.
matchByenum: testID | label | anyNo'any'Match strategy: testID (exact identifier match), label (substring in accessibility label), any (try both)
cross_platform_verify()