Accessibility label updates for Views using accessibilityLiveRegion are not being read aloud by Narrator
Environment
react-native -v: react-native-cli: 2.0.1 react-native: 0.60.6npm ls rnpm-plugin-windows: [email protected]npm ls react-native-windows: [email protected]node -v: v10.15.0npm -v: 6.13.1
Then, specify:
- Target Platform Version(s): 10.0.18362.0
- Target Device(s): Desktop
- Visual Studio Version: 2017
- Build Configuration: Debug
Steps to Reproduce
- Create a View and provide it an accessibilityLiveRegion of 'assertive'
- Enable Narrator
- Update the accessibilityLabel of the View created in step 1
Expected Behavior
Narrator will announce the accessibility label when it changes.
Actual Behavior
Accessibility label is not read aloud.
Additional context
When a breakpoint was placed in UpdateProperties in FrameworkElementViewManager, the execution never entered the code in the propertyName == "accessibilityLiveRegion" conditional. Locally, I added the accessibilityLiveRegion prop to the list of props in GetNativeProps in the same file, and then the accessibility label was read when it updated, as I expected. It looks like today accessibilityLiveRegion is being filtered out since it is not in the list in GetNativeProps.
Likely not yet implemented, we may not be listening to the events and updating as expected here.
I merged in a change that resolves this issue, so I am closing it.