react-native-progress-view / progress-bar-android

ProgressBar Component for react-native Android
MIT License
91 stars 34 forks source link

Selected State does not annonce when ProgressBarAndroid Component selected #64

Open amarlette opened 3 years ago

amarlette commented 3 years ago

From facebook/react-native#30958

Description

Does not announce "selected" on the focus of ProgressBarAndroid Component.

This issue is covered in-depth by parent issue #30842, please check there for more details.

Expected Behavior

Upon focus of an element with the "selected" accessibilityState set to true, the focus announcement should say "selected". Upon change from selected to not selected, no additional announcement should be made, however on state change from unselected to selected, an announcement of "selected" should be made. This works properly on some element, such as <Text>, and not on others, such as <Button>.

Snack

https://snack.expo.io/NCALByZTa

Android Details

The "selected" accessibilityState should correlate with Android's View's "selected" property, which seems to be properly working in most instances. It is likely the components where this doesn't work have problems on the Javascript side, and not the Android side.

React Native version:

0.63

amarlette commented 3 years ago

@hardikshah197 this is the issue I opened from the facebook/react-native repo

hardikshah197 commented 3 years ago

Thank you @amarlette for this important update, I'll take it up and start working on this repo only.