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>
|
|
|
|
|
2016-11-23 18:47:52 +03:00
|
|
|
#import <React/RCTComponent.h>
|
2017-05-30 01:56:47 +03:00
|
|
|
#import <React/RCTView.h>
|
2015-11-14 20:41:59 +03:00
|
|
|
|
2017-05-30 01:56:38 +03:00
|
|
|
@class RCTBridge;
|
2017-05-30 01:56:47 +03:00
|
|
|
@class RCTUITextField;
|
2015-02-20 07:10:52 +03:00
|
|
|
|
2017-05-30 01:56:47 +03:00
|
|
|
@interface RCTTextField : RCTView
|
2015-02-20 07:10:52 +03:00
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL caretHidden;
|
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-07-21 22:37:24 +03:00
|
|
|
@property (nonatomic, assign) NSInteger mostRecentEventCount;
|
|
|
|
@property (nonatomic, strong) NSNumber *maxLength;
|
2017-05-30 01:56:42 +03:00
|
|
|
@property (nonatomic, assign) UIEdgeInsets reactPaddingInsets;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets reactBorderInsets;
|
2015-02-20 07:10:52 +03:00
|
|
|
|
2015-11-14 20:41:59 +03:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onSelectionChange;
|
|
|
|
|
2017-05-30 01:56:47 +03:00
|
|
|
@property (nonatomic, strong) RCTUITextField *textField;
|
|
|
|
|
2017-05-30 01:56:38 +03:00
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
2015-11-02 20:13:41 +03:00
|
|
|
|
2017-05-30 01:56:47 +03:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
|
|
|
|
|
2015-02-20 07:10:52 +03:00
|
|
|
@end
|