File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/react-native/React/Fabric/Mounting/ComponentViews/View Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1919#import < React/RCTCursor.h> // [macOS]
2020#import < React/RCTLinearGradient.h>
2121#import < React/RCTLocalizedString.h>
22- #import < React/UIView+React.h> // [macOS]
2322#import < react/featureflags/ReactNativeFeatureFlags.h>
2423#import < react/renderer/components/view/ViewComponentDescriptor.h>
2524#import < react/renderer/components/view/ViewEventEmitter.h>
@@ -399,11 +398,13 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
399398 self.accessibilityElement .accessibilityLabel = RCTNSStringFromStringNilIfEmpty (newViewProps.accessibilityLabel );
400399 }
401400
401+ #if !TARGET_OS_OSX // [macOS]
402402 // `accessibilityLanguage`
403403 if (oldViewProps.accessibilityLanguage != newViewProps.accessibilityLanguage ) {
404404 self.accessibilityElement .accessibilityLanguage =
405405 RCTNSStringFromStringNilIfEmpty (newViewProps.accessibilityLanguage );
406406 }
407+ #endif // [macOS]
407408
408409 // `accessibilityHint`
409410 if (oldViewProps.accessibilityHint != newViewProps.accessibilityHint ) {
You can’t perform that action at this time.
0 commit comments