Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 789 Bytes

has-valid-accessibility-component-type.md

File metadata and controls

30 lines (19 loc) · 789 Bytes

has-valid-accessibility-component-type

The accessibilityComponentType property is essentially the android version of accessibilityTraits and is used to alert a user, using TalkBack, what kind of element they have selected.

Values may be one of the following:

  • none
  • button
  • radiobutton_checked
  • radiobutton_unchecked

References

  1. https://facebook.github.io/react-native/docs/accessibility.html#accessibilitycomponenttype-android

Rule details

This rule takes no arguments.

Succeed

<TouchableOpacity accessibilityComponentType="button" />

Fail

<TouchableOpacity accessibilityComponentType="primary-button" />