mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Jest e2e by exposing accessibilityLabel in RCTParagraphComponentView
Summary: Changelog: [internal] Reviewed By: shergin Differential Revision: D26225118 fbshipit-source-id: 28e7292663ba8faf5d11f04da754dbec33efee90
This commit is contained in:
committed by
Facebook GitHub Bot
parent
001dbf2068
commit
76a1db4b20
@@ -125,6 +125,11 @@ using namespace facebook::react;
|
||||
|
||||
#pragma mark - Accessibility
|
||||
|
||||
- (NSString *)accessibilityLabel
|
||||
{
|
||||
return self.attributedText.string;
|
||||
}
|
||||
|
||||
- (BOOL)isAccessibilityElement
|
||||
{
|
||||
// All accessibility functionality of the component is implemented in `accessibilityElements` method below.
|
||||
|
||||
Reference in New Issue
Block a user