mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 23:05:00 +08:00
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:
committed by
facebook-github-bot-5
parent
a32ff54e70
commit
807e0d9310
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user