2015-03-23 20:28:42 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTComponent.h>
|
2015-11-14 17:41:59 +00:00
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
@class RCTEventDispatcher;
|
|
|
|
|
2015-08-06 16:53:20 +00:00
|
|
|
@interface RCTTextField : UITextField
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL caretHidden;
|
2015-04-15 00:51:28 +00:00
|
|
|
@property (nonatomic, assign) BOOL selectTextOnFocus;
|
2015-11-05 05:01:49 +00:00
|
|
|
@property (nonatomic, assign) BOOL blurOnSubmit;
|
2015-03-27 16:36:33 +00:00
|
|
|
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
2015-04-27 17:24:49 +00:00
|
|
|
@property (nonatomic, strong) UIColor *placeholderTextColor;
|
2015-07-21 19:37:24 +00:00
|
|
|
@property (nonatomic, assign) NSInteger mostRecentEventCount;
|
|
|
|
@property (nonatomic, strong) NSNumber *maxLength;
|
2015-11-02 17:13:41 +00:00
|
|
|
@property (nonatomic, assign) BOOL textWasPasted;
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-11-14 17:41:59 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onSelectionChange;
|
|
|
|
|
2015-03-01 23:33:55 +00:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
2015-11-02 17:13:41 +00:00
|
|
|
|
2015-08-06 16:53:20 +00:00
|
|
|
- (void)textFieldDidChange;
|
2015-11-02 17:13:41 +00:00
|
|
|
- (void)sendKeyValueForString:(NSString *)string;
|
2015-11-05 05:01:49 +00:00
|
|
|
- (BOOL)textFieldShouldEndEditing:(RCTTextField *)textField;
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
@end
|