diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollView.m b/packages/react-native/React/Views/ScrollView/RCTScrollView.m index f0d0214e7244..9a874e7f415f 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollView.m +++ b/packages/react-native/React/Views/ScrollView/RCTScrollView.m @@ -1508,6 +1508,18 @@ - (void)setContentInsetAdjustmentBehavior:(UIScrollViewContentInsetAdjustmentBeh _scrollView.contentInsetAdjustmentBehavior = behavior; _scrollView.contentOffset = contentOffset; } +#else // [macOS] No-op setters, so setting these props from JS doesn't crash +- (void)setScrollIndicatorInsets:(__unused UIEdgeInsets)value +{ +} + +- (void)setVerticalScrollIndicatorInsets:(__unused UIEdgeInsets)value +{ +} + +- (void)setAutomaticallyAdjustsScrollIndicatorInsets:(__unused BOOL)automaticallyAdjusts +{ +} #endif // [macOS] #pragma clang diagnostic pop // [macOS]