[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:
Tadeu Zagallo
2015-08-06 09:53:20 -07:00
parent 0d981c06de
commit 48548fedbf
3 changed files with 42 additions and 36 deletions

View File

@@ -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