diff --git a/ios/RNCSegmentedControl.m b/ios/RNCSegmentedControl.m index 4a1bfea..3cf1e51 100644 --- a/ios/RNCSegmentedControl.m +++ b/ios/RNCSegmentedControl.m @@ -101,4 +101,10 @@ - (NSArray *)accessibilityElements { return elements; } +// Prevents the segmented control from interfering with scroll gestures in ScrollViews. +// See https://stackoverflow.com/a/58193949 +- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { + return YES; +} + @end