-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextView.h
More file actions
35 lines (30 loc) · 1.01 KB
/
Copy pathEnrichedTextView.h
File metadata and controls
35 lines (30 loc) · 1.01 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
#pragma once
#import "config/EnrichedConfig.h"
#import "interfaces/EnrichedViewHost.h"
#import "interfaces/MediaAttachment.h"
#import "interfaces/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;
@end
NS_ASSUME_NONNULL_END
#endif /* EnrichedTextViewNativeComponent_h */