2015-04-29 01:29:00 -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>
|
|
|
|
|
2016-11-23 07:47:52 -08:00
|
|
|
#import <React/RCTView.h>
|
|
|
|
#import <React/UIView+React.h>
|
2015-04-29 01:29:00 -07:00
|
|
|
|
2017-07-06 16:55:34 -07:00
|
|
|
#import "RCTTextInput.h"
|
|
|
|
|
2017-03-20 00:00:18 -07:00
|
|
|
@class RCTBridge;
|
2015-04-29 01:29:00 -07:00
|
|
|
|
2017-07-18 14:33:31 -07:00
|
|
|
@interface RCTTextView : RCTTextInput
|
2017-06-27 16:05:04 -07:00
|
|
|
|
2016-11-23 05:41:07 -08:00
|
|
|
@property (nonatomic, assign) UITextAutocorrectionType autocorrectionType;
|
2016-11-25 04:20:21 -08:00
|
|
|
@property (nonatomic, assign) UITextSpellCheckingType spellCheckingType;
|
2015-04-29 01:29:00 -07:00
|
|
|
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
|
2015-05-14 09:37:39 -07:00
|
|
|
@property (nonatomic, copy) NSString *text;
|
2015-04-29 01:29:00 -07:00
|
|
|
@property (nonatomic, strong) UIColor *placeholderTextColor;
|
2017-03-20 00:00:23 -07:00
|
|
|
@property (nonatomic, copy) NSString *placeholder;
|
2015-05-14 09:37:39 -07:00
|
|
|
@property (nonatomic, strong) UIFont *font;
|
2015-07-21 12:37:24 -07:00
|
|
|
@property (nonatomic, strong) NSNumber *maxLength;
|
2015-04-29 01:29:00 -07:00
|
|
|
|
2016-05-23 09:08:51 -07:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onChange;
|
2016-06-24 06:28:38 -07:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onTextInput;
|
2016-11-22 11:52:18 -08:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onScroll;
|
2015-11-14 09:41:59 -08:00
|
|
|
|
2015-11-04 04:04:37 -08:00
|
|
|
- (void)performTextUpdate;
|
|
|
|
|
2015-04-29 01:29:00 -07:00
|
|
|
@end
|