Description
On iOS the accessibilityActions labels are not read out by VoiceOver.
For example, in the code below, VoiceOver only reads the name of each accessibility action. Instead it should read the provided label.
<Pressable
style={styles.button}
accessibilityActions={[
{ name: 'LIKE', label: 'Add a like.' },
{ name: 'BOOKMARK', label: 'Add item to bookmarks.' },
{ name: 'MENU', label: 'Open menu screen.' },
]}
onAccessibilityAction={event => {
...
}}
>
<Text style={styles.buttonLabel}>Simple Button</Text>
</Pressable>
We noticed this issue after migrating our project to the new a architecture. We have also verified that this is not an issue on the old architecture.
Steps to reproduce
- Turn on VoiceOver on an iOS device.
- Move VoiceOver focus on an element that has
accessibilityActions.
- Swipe up/down to go through the actions.
- VoiceOver only reads the action names and not the labels.
React Native Version
0.79.6
Affected Platforms
Runtime - iOS
Areas
Other (please specify)
Output of npx @react-native-community/cli info
Reproducible with the provided Expo app on an iOS device.
Stacktrace or Logs
MANDATORY Reproducer
https://github.com/joonasmkauppinen/repro-rn-accessibility-actions-label-issue
Screenshots and Videos
No response
Description
On iOS the
accessibilityActionslabels are not read out by VoiceOver.For example, in the code below, VoiceOver only reads the
nameof each accessibility action. Instead it should read the providedlabel.We noticed this issue after migrating our project to the new a architecture. We have also verified that this is not an issue on the old architecture.
Steps to reproduce
accessibilityActions.React Native Version
0.79.6
Affected Platforms
Runtime - iOS
Areas
Other (please specify)
Output of
npx @react-native-community/cli infoStacktrace or Logs
MANDATORY Reproducer
https://github.com/joonasmkauppinen/repro-rn-accessibility-actions-label-issue
Screenshots and Videos
No response