expo / expo/react-native-action-sheet

Android Talkback reads title and/or message as a button

Open
#352 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

We attempt to use the react-native-action-sheet library but have noticed that title and messages when passed are being read as buttons by android Talkback and includes a 'double tap to activate' after the read because of this. It looks like you'd need to include a accessibility role of 'text' to those two text components and ensure the parent containers don't interfere with that setup.

```
_renderTitleContent = () => {
const { title, titleTextStyle, message, messageTextStyle, showSeparators } = this.props;

if (!title && !message) {
return null;
}

return (


{!!title && {title}}
{!!message && {message}}

{!!showSeparators && this._renderRowSeparator('title')}

);
};
```

You can reproduce this and text the fix by setting up an action sheet with a title and having Talkback read it before and after.

Thanks, and let me know if you have any questions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.