diff --git a/Libraries/Components/Switch/Switch.js b/Libraries/Components/Switch/Switch.js index 6c90f3d49c9a34..487df01c31aa6e 100644 --- a/Libraries/Components/Switch/Switch.js +++ b/Libraries/Components/Switch/Switch.js @@ -184,8 +184,18 @@ const SwitchWithForwardedRef: React.AbstractComponent< }, [value, native]); if (Platform.OS === 'android') { + const {accessibilityState} = restProps; + const _disabled = + disabled != null ? disabled : accessibilityState?.disabled; + + const _accessibilityState = + _disabled !== accessibilityState?.disabled + ? {...accessibilityState, disabled: _disabled} + : accessibilityState; + const platformProps = { - enabled: disabled !== true, + accessibilityState: _accessibilityState, + enabled: _disabled !== true, on: value === true, style, thumbTintColor: thumbColor,