diff --git a/Libraries/Text/RCTTextField.m b/Libraries/Text/RCTTextField.m index 2160feb8cefa2a..a82f55bbae42b6 100644 --- a/Libraries/Text/RCTTextField.m +++ b/Libraries/Text/RCTTextField.m @@ -293,18 +293,6 @@ - (void)didMoveToWindow [self reactFocusIfNeeded]; } -- (BOOL)isAccessibilityElement { - // Always return NO to enumerate child elements. Otherwise the "clear text" button is hidden - // from accessibility interface. - return NO; -} - -- (BOOL)accessibilityElementsHidden { - // If "accessible" prop is set to false on TextInput, disable all accessible children. - // Without this function the "clear text" UIButton is still exposed. - return ![super isAccessibilityElement]; -} - #pragma mark - UITextFieldDelegate (Proxied) - (BOOL)shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string