Remove some methods that have `NS_UNAVAILABLE` set (#19790)

Summary:
These lines were causing erros with the e2e tests on ios.
There are some methods that are not going to be called, and some definitions that are not correct.

needed for #19574.

we will run the e2e tests.

[INTERNAL] [MINOR] [Tests] - Fix some definitions.
Closes https://github.com/facebook/react-native/pull/19790

Differential Revision: D8509228

Pulled By: hramos

fbshipit-source-id: 78650e347db52305a587e3461ac56877e3c79062
This commit is contained in:
Pavlos Vinieratos 2018-06-19 02:08:23 -07:00 committed by Facebook Github Bot
parent e11cdc917c
commit 5f9a2117bf
4 changed files with 0 additions and 18 deletions

View File

@ -40,9 +40,6 @@
return self;
}
RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
- (id<RCTBackedTextInputViewProtocol>)backedTextInputView
{
return _backedTextInputView;

View File

@ -108,12 +108,6 @@ static UIColor *defaultPlaceholderColor()
_placeholderView.textAlignment = textAlignment;
}
- (void)setText:(NSString *)text
{
[super setText:text];
[self textDidChange];
}
- (void)setAttributedText:(NSAttributedString *)attributedText
{
[super setAttributedText:attributedText];

View File

@ -32,9 +32,6 @@
return self;
}
RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)coder)
- (id<RCTBackedTextInputViewProtocol>)backedTextInputView
{
return _backedTextInputView;

View File

@ -121,12 +121,6 @@
#pragma mark - Overrides
- (void)setSelectedTextRange:(UITextRange *)selectedTextRange
{
[super setSelectedTextRange:selectedTextRange];
[_textInputDelegateAdapter selectedTextRangeWasSet];
}
- (void)setSelectedTextRange:(UITextRange *)selectedTextRange notifyDelegate:(BOOL)notifyDelegate
{
if (!notifyDelegate) {