Revert accessibility textinput issue to see if it is the root cause of labels not showing up properly

Summary: Reverting cb7e26ab6a to see if this fixes the accessibility issue we are seeing in text inputs.

Reviewed By: shergin

Differential Revision: D15271883

fbshipit-source-id: e956f93af539e146ac5a7948fdae020c99a1301e
This commit is contained in:
Xiuli Shen
2019-05-08 21:13:07 -07:00
committed by Facebook Github Bot
parent e7ebb17452
commit d4d463bc2b
2 changed files with 7 additions and 1 deletions

View File

@@ -505,6 +505,13 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
return fittingSize;
}
#pragma mark - Accessibility
- (UIView *)reactAccessibilityElement
{
return self.backedTextInputView;
}
#pragma mark - Focus Control
- (void)reactFocus

View File

@@ -34,7 +34,6 @@ RCT_EXPORT_MODULE()
#pragma mark - Unified <TextInput> properties
RCT_REMAP_VIEW_PROPERTY(accessibilityLabel, reactAccessibilityElement.accessibilityLabel, NSString)
RCT_REMAP_VIEW_PROPERTY(autoCapitalize, backedTextInputView.autocapitalizationType, UITextAutocapitalizationType)
RCT_REMAP_VIEW_PROPERTY(autoCorrect, backedTextInputView.autocorrectionType, UITextAutocorrectionType)
RCT_REMAP_VIEW_PROPERTY(contextMenuHidden, backedTextInputView.contextMenuHidden, BOOL)