2017-03-20 00:00:23 -07: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 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;
|
|
|
|
|
2017-03-20 00:00:23 -07:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|