mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-12 22:14:20 +00:00
4040151ee6
React Native 0.57 introduced 'accessibilityRole' and 'accessibilityStates' as cross-platform accessibility APIs to replace 'accessibilityComponentType' and 'accessibilityTraits' for Android and iOS. React Native for Web has supported the 'accessibilityRole' for a while. This patch maps some of the values defined in React Native to web equivalents, and continues to allow a larger selection of roles for web apps. It also adds support for 'accessibilityStates', mapping values to ARIA states with boolean values and expanding support beyond 'disabled' and 'selected'. Fix #1112 Close #1113