2017-05-29 22:56:47 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2017-07-06 23:55:34 +00:00
|
|
|
#import "RCTBackedTextInputViewProtocol.h"
|
2017-06-27 23:05:04 +00:00
|
|
|
|
2017-05-29 22:56:47 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Just regular UITextField... but much better!
|
|
|
|
*/
|
2017-06-27 23:05:04 +00:00
|
|
|
@interface RCTUITextField : UITextField <RCTBackedTextInputViewProtocol>
|
2017-05-29 22:56:47 +00:00
|
|
|
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)decoder NS_UNAVAILABLE;
|
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
@property (nonatomic, weak) id<RCTBackedTextInputDelegate> textInputDelegate;
|
|
|
|
|
2017-05-29 22:56:47 +00:00
|
|
|
@property (nonatomic, assign) BOOL caretHidden;
|
|
|
|
@property (nonatomic, assign, readonly) BOOL textWasPasted;
|
|
|
|
@property (nonatomic, strong, nullable) UIColor *placeholderColor;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets textContainerInset;
|
2017-06-27 23:04:59 +00:00
|
|
|
@property (nonatomic, assign, getter=isEditable) BOOL editable;
|
2017-05-29 22:56:47 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|