-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextView.h
More file actions
36 lines (31 loc) · 1.04 KB
/
Copy pathEnrichedTextView.h
File metadata and controls
36 lines (31 loc) · 1.04 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
#pragma once
#import "EnrichedConfig.h"
#import "EnrichedViewHost.h"
#import "MediaAttachment.h"
#import "MentionParams.h"
#import <React/RCTViewComponentView.h>
#import <UIKit/UIKit.h>
#ifndef EnrichedTextViewNativeComponent_h
#define EnrichedTextViewNativeComponent_h
NS_ASSUME_NONNULL_BEGIN
@interface EnrichedTextView
: RCTViewComponentView <EnrichedViewHost, MediaAttachmentDelegate> {
@public
UITextView *textView;
@public
EnrichedConfig *config;
@public
NSDictionary<NSNumber *, id> *stylesDict;
NSMutableDictionary<NSNumber *, NSArray<NSNumber *> *> *conflictingStyles;
NSMutableDictionary<NSNumber *, NSArray<NSNumber *> *> *blockingStyles;
NSMutableDictionary<NSAttributedStringKey, id> *defaultTypingAttributes;
@public
BOOL useHtmlNormalizer;
}
- (CGSize)measureSize:(CGFloat)maxWidth;
- (void)emitOnLinkPressEvent:(NSString *)url;
- (void)emitOnMentionPressEvent:(MentionParams *)mention;
- (void)emitOnImagePressEvent:(MediaAttachment *)attachment;
@end
NS_ASSUME_NONNULL_END
#endif /* EnrichedTextViewNativeComponent_h */