mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[ReactNative] Fix RCTTextField crash on iOS7
Summary: RCTTextField was its own delegate, that was causing a stall on the main thread, see more here: http://stackoverflow.com/questions/19758025/uitextfield-delegate-jumping-to-100-cpu-usage-and-crashing-upon-using-keyboard
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
@class RCTEventDispatcher;
|
||||
|
||||
@interface RCTTextField : UITextField<UITextFieldDelegate>
|
||||
@interface RCTTextField : UITextField
|
||||
|
||||
@property (nonatomic, assign) BOOL caretHidden;
|
||||
@property (nonatomic, assign) BOOL autoCorrect;
|
||||
@@ -22,5 +22,6 @@
|
||||
@property (nonatomic, strong) NSNumber *maxLength;
|
||||
|
||||
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
||||
- (void)textFieldDidChange;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user