2017-03-20 07:00:23 +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-07-18 21:33:31 +00:00
|
|
|
#import "RCTBackedTextInputDelegate.h"
|
|
|
|
|
2017-03-20 07:00:23 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Just regular UITextView... but much better!
|
|
|
|
*/
|
2017-06-27 23:05:04 +00:00
|
|
|
@interface RCTUITextView : UITextView <RCTBackedTextInputViewProtocol>
|
2017-03-20 07:00:23 +00:00
|
|
|
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame textContainer:(nullable NSTextContainer *)textContainer NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
|
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
@property (nonatomic, weak) id<RCTBackedTextInputDelegate> textInputDelegate;
|
|
|
|
|
2017-03-20 07:00:23 +00:00
|
|
|
@property (nonatomic, assign, readonly) BOOL textWasPasted;
|
2017-06-27 23:05:02 +00:00
|
|
|
@property (nonatomic, copy, nullable) NSString *placeholder;
|
|
|
|
@property (nonatomic, strong, nullable) UIColor *placeholderColor;
|
2017-03-20 07:00:23 +00:00
|
|
|
|
2017-06-27 23:05:08 +00:00
|
|
|
@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth;
|
|
|
|
|
2017-03-20 07:00:23 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|