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>
|
|
|
|
|
|
|
|
#import "RCTView.h"
|
|
|
|
#import "UIView+React.h"
|
|
|
|
|
|
|
|
@class RCTEventDispatcher;
|
|
|
|
|
|
|
|
@interface RCTTextView : RCTView <UITextViewDelegate>
|
|
|
|
|
|
|
|
@property (nonatomic, assign) BOOL autoCorrect;
|
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) UIEdgeInsets contentInset;
|
|
|
|
@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;
|
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;
|
2015-04-29 08:29:00 +00:00
|
|
|
|
2015-11-14 17:41:59 +00:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onSelectionChange;
|
|
|
|
|
2015-04-29 08:29:00 +00:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
2015-11-04 12:04:37 +00:00
|
|
|
- (void)performTextUpdate;
|
|
|
|
|
2015-04-29 08:29:00 +00:00
|
|
|
@end
|