mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
06c295c58f
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/40739 Adding support for grouped accessibility focus on switch. This is when the switch itself shouldn't be directly focusable. Instead, the parent element should be focusable, including announcing the switch role and state changes, e.g. "on" and "off". Fix this issue in a couple ways: 1. Make sure to set the proper role for switch in FbReactSwitchCompat.java. 2. Set the state description in SwitchCompat.java so that uses the correct announcement of "off" and "on" instead of "checked" and "unchecked". Reviewed By: blavalla Differential Revision: D50068169 fbshipit-source-id: 0c4133377f7a29da9cadb730399bdbedd58c26ae