mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
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:
committed by
Facebook Github Bot
parent
e7ebb17452
commit
d4d463bc2b
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user