-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypeRichTextInputView.h
More file actions
32 lines (24 loc) · 885 Bytes
/
TypeRichTextInputView.h
File metadata and controls
32 lines (24 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#import <React/RCTViewComponentView.h>
#import <react/renderer/core/State.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface TypeRichTextInputView : RCTViewComponentView <UITextViewDelegate>
@property(nonatomic, assign) BOOL blockEmitting;
- (CGSize)measureSize:(CGFloat)maxWidth;
// events
- (void)emitPasteImageEventWith:(NSString *)uri
type:(NSString *)type
fileName:(NSString *)fileName
fileSize:(NSUInteger)fileSize;
// commands
- (void)handleCommand:(NSString *)commandName
args:(NSArray *)args;
// helpers used by commands
- (BOOL)isTouchInProgress;
//- (BOOL)isHandlingUserInput;
- (void)invalidateTextLayoutFromCommand;
- (void)updatePlaceholderVisibilityFromCommand;
- (void)dispatchSelectionChangeIfNeeded;
- (BOOL)isDisableImagePasting;
@end
NS_ASSUME_NONNULL_END