GeekyAnts / GeekyAnts/NativeBase

"Toast" is not announced by Voiceover or Talkback

Open
#4,985 2 comments 0 reactions 0 assignees View on GitHub
accessibility bug v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

I expect the contents of the alert to be read by the screenreader when it appears on screen.

### CodeSandbox/Snack link

https://snack.expo.dev/@simonflk/nativebase-alert-example

### Steps to reproduce

1. Enable Voiceover on iOS or Talkback on Android device
2. Open snack link
3. Press any button to trigger a toast
4. Wait for screenreader to read contents of toast

### NativeBase Version

3.4.3

### Platform

- [X] Android
- [ ] CRA
- [ ] Expo
- [X] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

iOS 15.4.1
Android 12 (Pixel 5, April 2022 update)

Docs says:
* On Android and Web, Toast renders under a View with accessibilityLiveRegion which announces the content rendered inside it to screen reader devices.
* On iOS, accessibilityLiveRegion is not supported yet, so we use the
[accessibilityAnnouncement](https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility)
to announce the content.

But this is not happening for me

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.