Skip to content

Commit 28a5937

Browse files
committed
exclude iOS only a11y props
1 parent 903c131 commit 28a5937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
424424
if (oldViewProps.accessibilityElementsHidden != newViewProps.accessibilityElementsHidden) {
425425
self.accessibilityElement.accessibilityElementsHidden = newViewProps.accessibilityElementsHidden;
426426
}
427-
#endif // [macOS]
428427

429428
// `accessibilityShowsLargeContentViewer`
430429
if (oldViewProps.accessibilityShowsLargeContentViewer != newViewProps.accessibilityShowsLargeContentViewer) {
@@ -445,6 +444,7 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared &
445444
self.largeContentTitle = RCTNSStringFromStringNilIfEmpty(newViewProps.accessibilityLargeContentTitle);
446445
}
447446
}
447+
#endif // [macOS]
448448

449449
// `accessibilityTraits`
450450
if (oldViewProps.accessibilityTraits != newViewProps.accessibilityTraits) {

0 commit comments

Comments
 (0)