2015-03-23 23:28:42 +03: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 07:10:52 +03:00
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2015-11-14 20:41:59 +03:00
|
|
|
#import "RCTComponent.h"
|
|
|
|
|
2015-02-20 07:10:52 +03:00
|
|
|
@class RCTEventDispatcher;
|
|
|
|
|
2015-08-06 19:53:20 +03:00
|
|
|
@interface RCTTextField : UITextField
|
2015-02-20 07:10:52 +03:00
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL caretHidden;
|
|
|
|
@property (nonatomic, assign) BOOL autoCorrect;
|
2015-04-15 03:51:28 +03:00
|
|
|
@property (nonatomic, assign) BOOL selectTextOnFocus;
|
2015-11-05 08:01:49 +03:00
|
|
|
@property (nonatomic, assign) BOOL blurOnSubmit;
|
2015-03-27 19:36:33 +03:00
|
|
|
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
2015-04-27 20:24:49 +03:00
|
|
|
@property (nonatomic, strong) UIColor *placeholderTextColor;
|
2015-07-21 22:37:24 +03:00
|
|
|
@property (nonatomic, assign) NSInteger mostRecentEventCount;
|
|
|
|
@property (nonatomic, strong) NSNumber *maxLength;
|
2015-11-02 20:13:41 +03:00
|
|
|
@property (nonatomic, assign) BOOL textWasPasted;
|
2015-02-20 07:10:52 +03:00
|
|
|
|
2015-11-14 20:41:59 +03:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onSelectionChange;
|
|
|
|
|
2015-03-02 02:33:55 +03:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
2015-11-02 20:13:41 +03:00
|
|
|
|
2015-08-06 19:53:20 +03:00
|
|
|
- (void)textFieldDidChange;
|
2015-11-02 20:13:41 +03:00
|
|
|
- (void)sendKeyValueForString:(NSString *)string;
|
2015-11-05 08:01:49 +03:00
|
|
|
- (BOOL)textFieldShouldEndEditing:(RCTTextField *)textField;
|
2015-02-20 07:10:52 +03:00
|
|
|
|
|
|
|
@end
|