react-native-dropdown-picker
react-native-dropdown-picker copied to clipboard
Accessibility Issues
The DropDownPicker has several accessibility issues. When in VoiceOver mode, the element should declare its role and state.
Level A - 1.3.1 Info and Relationships -
An easy fix - add role and state to the dropdown:
<TouchableOpacity accessibilityRole='combobox' accessibilityState={{expanded: open}} style={_style} onPress={__onPress} onLayout={__onLayout} {...props} ref={onRef} pointerEvents={pointerEvents} disabled={disabled} testID={testID}>
In addition, the accessibility properties should be exported: accessible accessibilityRole accessibilityState accessibilityLabel