Android: Adding custom actions #30854
Labels
Accessibility Team - Evaluated
Accessibility
Good first issue
Interested in collaborating? Take a stab at fixing one of these issues.
Platform: Android
Android applications.
Resolution: Locked
This issue was locked by the bot.
Description
The
accessibilityActions
andonAccessibilityAction
provided by React Native (https://reactnative.dev/docs/accessibility#accessibility-actions) do not work on all core components.Specifically Button, TextInput, Text, and Picker do not allow these properties to be set, even though they do support other accessibility properties.
Custom actions are often added to help streamline the UI, and allowing them to be used in some places but not others limits their usefulness.
React Native version:
v0.63
Expected Behavior
AccessibilityActions and the onAccessibilityAction callback should be able to work on all core components.
Snack
Android Details
AccessibilityActions and onAccessibilityAction are already well implemented on the Android side, so this change likely only needs to happen in the components themselves on the Javascript side.
The text was updated successfully, but these errors were encountered: