Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 716 Bytes

has-accessibility-hint.md

File metadata and controls

23 lines (16 loc) · 716 Bytes

has-accessibility-hint

An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not apparent from the accessibility label.

References

  1. React Native Docs - accessibilityHint (iOS, Android)

Rule details

This rule takes no arguments.

Succeed

<TouchableOpacity />
<TouchableOpacity accessibilityHint="Navigates to the previous screen" />
<TouchableOpacity accessibilityHint="Navigates to the previous screen" accessibilityLabel="Go back" />

Fail

<TouchableOpacity accessibilityLabel="Go back" />