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 19
19
#import < React/RCTCursor.h> // [macOS]
20
20
#import < React/RCTLinearGradient.h>
21
21
#import < React/RCTLocalizedString.h>
22
- #import < React/UIView+React.h> // [macOS]
23
22
#import < react/featureflags/ReactNativeFeatureFlags.h>
24
23
#import < react/renderer/components/view/ViewComponentDescriptor.h>
25
24
#import < react/renderer/components/view/ViewEventEmitter.h>
@@ -399,11 +398,13 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
399
398
self.accessibilityElement .accessibilityLabel = RCTNSStringFromStringNilIfEmpty (newViewProps.accessibilityLabel );
400
399
}
401
400
401
+ #if !TARGET_OS_OSX // [macOS]
402
402
// `accessibilityLanguage`
403
403
if (oldViewProps.accessibilityLanguage != newViewProps.accessibilityLanguage ) {
404
404
self.accessibilityElement .accessibilityLanguage =
405
405
RCTNSStringFromStringNilIfEmpty (newViewProps.accessibilityLanguage );
406
406
}
407
+ #endif // [macOS]
407
408
408
409
// `accessibilityHint`
409
410
if (oldViewProps.accessibilityHint != newViewProps.accessibilityHint ) {
You can’t perform that action at this time.
0 commit comments