A framework for building native applications using React
fix: align AccessibilityRole TypeScript definitions (#56863)
Summary: - Align `ViewAccessibility.d.ts`'s `AccessibilityRole` union with the roles already supported by the Flow type and generated API snapshot. - Add TypeScript type coverage for `grid` and `pager`, which are among the roles missing from this declaration. ## Changelog: [General] [Fixed] - Align TypeScript accessibility role definitions with supported React Native accessibility roles Pull Request resolved: https://github.com/facebook/react-native/pull/56863 Test Plan: - `npx prettier --check packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts packages/react-native/types/__typetests__/index.tsx` - `npm run test-typescript -- --pretty false` - `npm run test-generated-typescript -- --pretty false` Reviewed By: huntie Differential Revision: D105592939 Pulled By: Abbondanzo fbshipit-source-id: 9b88c22091dc4051cc1c1c45a7424f078bc4dc54
T
threadhoard-vps committed
75e1f06b66d3fb5addaaff1be8c7fba0a6552a8b
Parent: 949b804
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 5/19/2026, 11:54:28 AM