React Native A11y
Resources
- https://reactnative.dev/docs/accessibility
- https://callstack.com/blog/react-native-android-accessibility-tips/
A11y properties
accessible: whentrue, groups children into a single selectable componentaccessibilityLabel: read for the element. Unclear: if not provided, does it default to all theTextchildren's contents?accessibilityHint: explains what accessing it does. Is this too verbose?accessibilityRole: what type of interaction it is. Lots of options: https://reactnative.dev/docs/accessibility#accessibilityrole - common ones:buttoncheckboxheaderimagemenuprogressbarradioradiogroupsearchswitch- a toggletabtablisttext- static text
accessibilityState- object with true/false values fordisabled,selected,checked,busy, and/orexpandedaccessibilityValue- at least for sliders likemin,max, andnow- unclear if needed for text inputsaccessibilityElementsHidden- hides this element from screen readers
Slapdash