Skip to content

Commit 370e39f

Browse files
committed
backport patch for "accessibilityLabel does not work for Text component on iOS" issue (facebook#14123)
1 parent 1e2a924 commit 370e39f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/Text/RCTText.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ - (void)didMoveToWindow
194194

195195
- (NSString *)accessibilityLabel
196196
{
197+
NSString *superAccessibilityLabel = [super accessibilityLabel];
198+
if (superAccessibilityLabel) {
199+
return superAccessibilityLabel;
200+
}
197201
return _textStorage.string;
198202
}
199203

0 commit comments

Comments
 (0)