Fixed Xcode warnings

Summary:
public

Fixed some Xcode warnings, and added some missing UIResponder methods to make the behavior of RCTTextView more self-consistent.

Reviewed By: javache

Differential Revision: D2712250

fb-gh-sync-id: d30038500194d7a5262d9e77d516c65d836a4420
This commit is contained in:
Nick Lockwood
2015-12-02 07:08:29 -08:00
committed by facebook-github-bot-5
parent a32ff54e70
commit 807e0d9310
3 changed files with 17 additions and 7 deletions

View File

@@ -410,6 +410,16 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
eventCount:_nativeEventCount];
}
- (BOOL)isFirstResponder
{
return [_textView isFirstResponder];
}
- (BOOL)canBecomeFirstResponder
{
return [_textView canBecomeFirstResponder];
}
- (void)reactWillMakeFirstResponder
{
[_textView reactWillMakeFirstResponder];
@@ -427,7 +437,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
- (BOOL)resignFirstResponder
{
return [_textView resignFirstResponder];
return [super resignFirstResponder] && [_textView resignFirstResponder];
}
- (void)layoutSubviews