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>
|
|
|
|
|
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-07-06 23:55:34 +00:00
|
|
|
#import "RCTTextInput.h"
|
|
|
|
|
2017-03-20 07:00:18 +00:00
|
|
|
@class RCTBridge;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
@interface RCTTextView : RCTTextInput
|
2017-06-27 23:05:04 +00:00
|
|
|
|
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-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, strong) NSNumber *maxLength;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2016-05-23 16:08:51 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onChange;
|
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
|
|
|
|
2015-11-04 12:04:37 +00:00
|
|
|
- (void)performTextUpdate;
|
|
|
|
|
2015-04-29 08:29:00 +00:00
|
|
|
@end
|