MCPcopy Index your code
hub / github.com/callstack/react-native-testing-library / computeAriaExpanded

Function computeAriaExpanded

src/helpers/accessibility.ts:241–243  ·  view source on GitHub ↗
({ props }: TestInstance)

Source from the content-addressed store, hash-verified

239
240// See: https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State#expanded-state
241export function computeAriaExpanded({ props }: TestInstance): boolean | undefined {
242 return props['aria-expanded'] ?? props.accessibilityState?.expanded;
243}
244
245// See: https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State#selected-state
246export function computeAriaSelected({ props }: TestInstance): boolean {

Callers 4

matchAccessibilityStateFunction · 0.90
toBeExpandedFunction · 0.90
toBeCollapsedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…