# has-accessibility-props Enforce that components only have either the accessibilityRole prop or both accessibilityTraits and accessibilityComponentType props set. The accessibilityRole props tells VoiceOver on iOS what kind of element the user has selected. Touchable components are one of: - `TouchableOpacity` - `TouchableHighlight` - `TouchableWithoutFeedback` - `TouchableNativeFeedback` - `TouchableBounce` - `Touchable` (from [react-native-platform-touchable](https://github.com/react-community/react-native-platform-touchable)) ### References 1. https://reactnative.dev/docs/accessibility#accessibilityrole 2. https://reactnative.dev/blog/2018/08/13/react-native-accessibility-updates ## Rule details This rule takes no arguments. ### Succeed ```jsx ``` ```jsx ``` ```jsx ``` ```jsx ``` ### Fail ```jsx ``` ```jsx ``` ```jsx ``` ```jsx ``` ```jsx ```