lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 499 forks source link

Enhancement: Adding accessibility props #396

Closed deansimcox closed 3 years ago

deansimcox commented 3 years ago

Is your feature request related to a problem? Please describe.
Including some accessibility props would allow the developer to control how the component is interpreted by screen readers. At the moment, if the children of the picker has a lot of text, all of that text is read out by the screen reader. This is undesirable.

Describe the solution you'd like
Adding accessible and accessibilityLabel would allow developers to control whether the rendered component is;

  1. Visible to screen readers, and
  2. Able to have a custom accessibility label.

Describe alternatives you've considered
I don't believe there are any alternatives.

Additional details
For more information regarding accessibility props: https://reactnative.dev/docs/accessibility