Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ - (void)onChange:(UISwitch *)sender
.onChange(SwitchEventEmitter::OnChange{.value = static_cast<bool>(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
Expand Down