Skip to content
Open
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
12 changes: 12 additions & 0 deletions package/ios/RNCSliderComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ - (instancetype)initWithFrame:(CGRect)frame
return self;
}

// RNCSlider is the accessibility element, not its Fabric wrapper. Exposing the
// wrapper blocks UISlider's native adjustable trait and increment/decrement actions.
- (BOOL)isAccessibilityElement
{
return NO;
}

- (NSObject *)accessibilityElement
{
return slider;
}

- (void)tapHandler:(UITapGestureRecognizer *)gesture {
if ([gesture.view class] != [RNCSlider class]) {
return;
Expand Down