2017-03-20 00:00:23 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-16 18:24:55 -08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-03-20 00:00:23 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2017-07-06 16:55:34 -07:00
|
|
|
#import "RCTBackedTextInputViewProtocol.h"
|
2017-06-27 16:05:04 -07:00
|
|
|
|
2017-07-18 14:33:31 -07:00
|
|
|
#import "RCTBackedTextInputDelegate.h"
|
|
|
|
|
2017-03-20 00:00:23 -07:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Just regular UITextView... but much better!
|
|
|
|
*/
|
2017-06-27 16:05:04 -07:00
|
|
|
@interface RCTUITextView : UITextView <RCTBackedTextInputViewProtocol>
|
2017-03-20 00:00:23 -07:00
|
|
|
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame textContainer:(nullable NSTextContainer *)textContainer NS_UNAVAILABLE;
|
2018-01-23 23:17:57 -08:00
|
|
|
- (instancetype)initWithCoder:(NSCoder *)decoder NS_UNAVAILABLE;
|
2017-03-20 00:00:23 -07:00
|
|
|
|
2017-07-18 14:33:31 -07:00
|
|
|
@property (nonatomic, weak) id<RCTBackedTextInputDelegate> textInputDelegate;
|
|
|
|
|
2017-03-20 00:00:23 -07:00
|
|
|
@property (nonatomic, assign, readonly) BOOL textWasPasted;
|
2017-06-27 16:05:02 -07:00
|
|
|
@property (nonatomic, copy, nullable) NSString *placeholder;
|
|
|
|
@property (nonatomic, strong, nullable) UIColor *placeholderColor;
|
2017-03-20 00:00:23 -07:00
|
|
|
|
2017-06-27 16:05:08 -07:00
|
|
|
@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth;
|
|
|
|
|
2018-01-30 11:22:02 -08:00
|
|
|
// The `clearButtonMode` property actually is not supported yet;
|
|
|
|
// it's declared here only to conform to the interface.
|
|
|
|
@property (nonatomic, assign) UITextFieldViewMode clearButtonMode;
|
|
|
|
|
2018-02-01 10:51:56 -08:00
|
|
|
// The `caretHidden` property actually is not supported yet;
|
|
|
|
// it's declared here only to conform to the interface.
|
|
|
|
@property (nonatomic, assign) BOOL caretHidden;
|
|
|
|
|
2017-03-20 00:00:23 -07:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|