From fab1086fcdcb83d9e2cab7cd2120f54dbc62857e Mon Sep 17 00:00:00 2001 From: Sandeep Sengupta Date: Thu, 12 Feb 2026 09:36:29 -0500 Subject: [PATCH] fix: Prevent SegmentedControl from interfering with scrolling in ScrollViews If a SegmentedControl is placed inside a ScrollView on iOS, scroll gestures starting inside the SegmentedControl will not scroll the ScrollView. This commit fixes this issue with a solution from: https://stackoverflow.com/a/58193949 --- ios/RNCSegmentedControl.m | 6 ++++++ 1 file changed, 6 insertions(+) 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