diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm index c4e36804615..2e0e34047e4 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/Switch/RCTSwitchComponentView.mm @@ -101,6 +101,18 @@ - (void)onChange:(UISwitch *)sender .onChange(SwitchEventEmitter::OnChange{.value = static_cast(sender.on)}); } +// UISwitch is the accessibility element not this view. If this is YES we block +// accessibility on the switch itself +- (BOOL)isAccessibilityElement +{ + return NO; +} + +- (NSObject *)accessibilityElement +{ + return _switchView; +} + #pragma mark - Native Commands - (void)handleCommand:(const NSString *)commandName args:(const NSArray *)args