-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextInputView.h
More file actions
56 lines (50 loc) · 1.58 KB
/
Copy pathEnrichedTextInputView.h
File metadata and controls
56 lines (50 loc) · 1.58 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#import "BaseStyleProtocol.h"
#import "EnrichedConfig.h"
#import "EnrichedInputTextView.h"
#import "EnrichedViewHost.h"
#import "InputAttributesManager.h"
#import "InputHtmlParser.h"
#import "LinkData.h"
#import "MediaAttachment.h"
#import <React/RCTViewComponentView.h>
#import <UIKit/UIKit.h>
#ifndef EnrichedTextInputViewNativeComponent_h
#define EnrichedTextInputViewNativeComponent_h
NS_ASSUME_NONNULL_BEGIN
@interface EnrichedTextInputView
: RCTViewComponentView <EnrichedViewHost, MediaAttachmentDelegate> {
@public
EnrichedInputTextView *textView;
@public
EnrichedConfig *config;
@public
InputHtmlParser *parser;
@public
InputAttributesManager *attributesManager;
@public
NSMutableDictionary<NSAttributedStringKey, id> *defaultTypingAttributes;
@public
NSDictionary<NSNumber *, id> *stylesDict;
NSMutableDictionary<NSNumber *, NSArray<NSNumber *> *> *conflictingStyles;
NSMutableDictionary<NSNumber *, NSArray<NSNumber *> *> *blockingStyles;
@public
BOOL blockEmitting;
@public
BOOL useHtmlNormalizer;
@public
NSValue *dotReplacementRange;
@public
NSArray<NSDictionary *> *textShortcuts;
@public
BOOL preserveTypingAttributesOnNextEmptyCheck;
}
- (CGSize)measureSize:(CGFloat)maxWidth;
- (void)emitOnLinkDetectedEvent:(LinkData *)linkData range:(NSRange)range;
- (void)emitOnMentionEvent:(NSString *)indicator text:(nullable NSString *)text;
- (void)emitOnPasteImagesEvent:(NSArray<NSDictionary *> *)images;
- (void)anyTextMayHaveBeenModified;
- (void)scheduleRelayoutIfNeeded;
@end
NS_ASSUME_NONNULL_END
#endif /* EnrichedTextInputViewNativeComponent_h */