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

Function computeAriaSelected

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

Source from the content-addressed store, hash-verified

244
245// See: https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State#selected-state
246export function computeAriaSelected({ props }: TestInstance): boolean {
247 return props['aria-selected'] ?? props.accessibilityState?.selected ?? false;
248}
249
250export function computeAriaValue(instance: TestInstance): AccessibilityValue {
251 const {

Callers 3

matchAccessibilityStateFunction · 0.90
toBeSelectedFunction · 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…