2015-04-29 08:29:00 +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-06-27 23:05:04 +00:00
|
|
|
#import <RCTText/RCTBackedTextInputViewProtocol.h>
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTView.h>
|
|
|
|
#import <React/UIView+React.h>
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2017-03-20 07:00:18 +00:00
|
|
|
@class RCTBridge;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
|
|
|
@interface RCTTextView : RCTView <UITextViewDelegate>
|
|
|
|
|
2017-06-27 23:05:04 +00:00
|
|
|
@property (nonatomic, readonly) id<RCTBackedTextInputViewProtocol> backedTextInputView;
|
|
|
|
|
2016-11-23 13:41:07 +00:00
|
|
|
@property (nonatomic, assign) UITextAutocorrectionType autocorrectionType;
|
2016-11-25 12:20:21 +00:00
|
|
|
@property (nonatomic, assign) UITextSpellCheckingType spellCheckingType;
|
2015-12-02 15:11:20 +00:00
|
|
|
@property (nonatomic, assign) BOOL blurOnSubmit;
|
2015-04-29 22:55:36 +00:00
|
|
|
@property (nonatomic, assign) BOOL clearTextOnFocus;
|
|
|
|
@property (nonatomic, assign) BOOL selectTextOnFocus;
|
2015-04-29 08:29:00 +00:00
|
|
|
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
|
2015-05-14 16:37:39 +00:00
|
|
|
@property (nonatomic, copy) NSString *text;
|
2015-04-29 08:29:00 +00:00
|
|
|
@property (nonatomic, strong) UIColor *placeholderTextColor;
|
2017-03-20 07:00:23 +00:00
|
|
|
@property (nonatomic, copy) NSString *placeholder;
|
2015-05-14 16:37:39 +00:00
|
|
|
@property (nonatomic, strong) UIFont *font;
|
2015-07-21 19:37:24 +00:00
|
|
|
@property (nonatomic, assign) NSInteger mostRecentEventCount;
|
|
|
|
@property (nonatomic, strong) NSNumber *maxLength;
|
2017-03-20 07:00:18 +00:00
|
|
|
@property (nonatomic, assign, readonly) CGSize contentSize;
|
2017-05-29 22:56:46 +00:00
|
|
|
@property (nonatomic, assign) UIEdgeInsets reactPaddingInsets;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets reactBorderInsets;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2016-05-23 16:08:51 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onChange;
|
2016-07-07 15:44:59 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onContentSizeChange;
|
2015-11-14 17:41:59 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onSelectionChange;
|
2016-06-24 13:28:38 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onTextInput;
|
2016-11-22 19:52:18 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onScroll;
|
2015-11-14 17:41:59 +00:00
|
|
|
|
2017-03-20 07:00:18 +00:00
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2015-11-04 12:04:37 +00:00
|
|
|
- (void)performTextUpdate;
|
|
|
|
|
2015-04-29 08:29:00 +00:00
|
|
|
@end
|