File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/react-native/React
Fabric/Mounting/ComponentViews/View Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1230,10 +1230,7 @@ - (NSString *)accessibilityLabel
1230
1230
return label;
1231
1231
}
1232
1232
1233
- if (self.isAccessibilityElement ) {
1234
- return RCTRecursiveAccessibilityLabel (self.currentContainerView );
1235
- }
1236
- return nil ;
1233
+ return RCTRecursiveAccessibilityLabel (self.currentContainerView );
1237
1234
}
1238
1235
1239
1236
- (NSString *)accessibilityLabelForCoopting
Original file line number Diff line number Diff line change @@ -240,10 +240,7 @@ - (NSString *)accessibilityLabel
240
240
if (label) {
241
241
return label;
242
242
}
243
- if (self.isAccessibilityElement ) {
244
- return RCTRecursiveAccessibilityLabel (self);
245
- }
246
- return nil ;
243
+ return RCTRecursiveAccessibilityLabel (self);
247
244
}
248
245
249
246
- (NSArray <UIAccessibilityCustomAction *> *)accessibilityCustomActions
You can’t perform that action at this time.
0 commit comments