Custom State Descriptions

This issue has been created since 2022-09-20.

Description

Description
Android added support for custom state descriptions in API 30. This allows for much richer announcements on elements that have more complex state than “selected”. For example, a play/pause button on a video player could have the state description of “platying” or “paused”.

These are powered by the setStateDescription property on the View and AccessibilityNodeInfo classes (https://developer.android.com/reference/android/view/View#setStateDescription(java.lang.CharSequence)).

This largely maps to the accessibilityValue property on iOS, so it may make sense to map the “text” value of that prop to stateDescription rather than concatenating it into the contentDescription as we do today.

Expected Behavior
When an element has stateDescription set, on focus the state is announced. On change of that state, only the change is announced, for example a video play button that has a state of “playing” that when clicked pauses, would automatically announce “paused” (the new state).

Version

0.66

Output of npx react-native info

see description

Steps to reproduce

see description

Snack, code example, screenshot, or link to a repository

see description

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Scramble PIN setting resets every time you login to wallet 1 2021-05-11 2022-07-13
Эфиопский расширенный B 1E7E0 0 2021-10-26 2022-09-07
tnse() treats input matrix X rows as observations, should be columns 6 2017-11-21 2022-08-06
REQUEST: Set Context on registration 19 2021-02-17 2022-08-21
uzb-eng - Invalid download link 3 2022-06-09 2022-09-30
Calculate P but the result of the paper is different 4 2021-06-14 2022-09-09
Random sequences giving a higher F1 than real sentences 5 2021-07-27 2022-09-09
[/package] remove the script if not needed 1 2022-02-10 2022-08-01
[BUG] Failed to copy video URI under deepin 20 2 2021-08-25 2022-09-24
[QUESTION] Is this still operational on TF2 and Keras? 0 2022-01-23 2022-09-25
Outdated `DiligentEngine` fork breaks clean build 2 2022-07-22 2022-08-06
Spreadsheet: Cell Units Improperly editing 2 2022-07-18 2022-08-06
Don't show people how to store secrets in plaintext files 2 2021-03-08 2022-09-30
Incorrectly identifies card as maestro 1 2021-03-11 2022-09-02
ga_rust: implement get_previous_addresses 1 2021-04-15 2022-08-16
[BUG] : 401 Unauthorized. text error 2 2022-05-07 2022-09-13
下拉刷新无法刷新refreshController.loadNoData(); 1 2021-11-24 2022-10-01
Dragging refresh indicator far enough triggers scroll glow 2 2021-11-10 2022-09-16
TypeError: cb.apply is not a function 3 2021-10-15 2022-08-06
Under Armor logo appears in URL bar 1 2022-01-03 2022-09-17
如何让katex的Auto-render按需引入 7 2021-06-04 2022-09-24
Fix regression on hide/unhide moderation buttons 3 2022-01-28 2022-09-23
Windows support: add a `sha256` selector to the "windows" workload attestor plugin 0 2022-04-23 2022-10-03
Web application - issue with Attributes class 0 2021-01-21 2022-09-28
Anonymization removes GE diffusion gradient directions. 0 2021-09-16 2022-09-09
Adding Stone And Concrete 3 2022-07-16 2022-09-16
How to enable compression while using standard JDBC connection? 5 2021-08-04 2022-10-03
OPM index add and registry add with binary image option adds new layers with the index content 4 2022-02-09 2022-07-13
No auto-reply mail sent 3 2022-01-27 2022-08-17
Displays no video with API 404 1 2022-04-10 2022-08-29
Update pipedapi.moomoo.me 1 2022-04-10 2022-10-06
Sanity tests failing in netbox.netbox 2 2022-05-06 2022-09-15
Allow symfony/cache-contracts 3 5 2021-12-20 2022-09-30
TeamMailboxes: ensure emails in team mailboxes are never encrypted 2 2021-10-12 2022-07-17
System Hard Crash related to sending Screenshots to iCloud Files while in Fehu 1 2020-12-25 2022-07-23
Both ByteWords & BIP39 wrapping layout on Print 2 2021-08-21 2022-07-23
FOUC during SSR in production builds 5 2022-06-10 2022-10-04
[chore] - Release notes 2022.10 0 2022-08-04 2022-08-20
Python entry is missing in config file 3 2021-09-08 2022-09-22
Invalid signature reported by jwt.io for RSA256 based JWT 1 2022-06-15 2022-09-24
ImportError with torch installed from source 3 2021-07-23 2022-10-02
Add Multipart support 1 2020-12-23 2022-08-18
Ensure memory is set in OS_stat handler 0 2022-01-18 2022-09-17
[Bug]: Warning on build 7 2021-10-26 2022-09-12
Can't type in output panel on NetBeans 5 2022-03-02 2022-09-20
PyPi Downloads: Another Example for the Docs 1 2020-10-11 2022-09-30
Precommit hook fails on windows git bash 1 2021-03-11 2022-09-19
onMouseLeave in Layer component not firing 6 2019-06-11 2022-04-25
Boxed mutable vector is buggy in doctests 16 2021-04-28 2022-09-06
FilePicker, no title seen, not sure what to expect? 2 2022-06-20 2022-10-03