-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathReactNativeRichTextEditorView.h
More file actions
33 lines (28 loc) · 1.12 KB
/
Copy pathReactNativeRichTextEditorView.h
File metadata and controls
33 lines (28 loc) · 1.12 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
#pragma once
#import <React/RCTViewComponentView.h>
#import <UIKit/UIKit.h>
#import "EditorConfig.h"
#import "EditorParser.h"
#import "BaseStyleProtocol.h"
#import "EditorTextView.h"
#ifndef ReactNativeRichTextEditorViewNativeComponent_h
#define ReactNativeRichTextEditorViewNativeComponent_h
NS_ASSUME_NONNULL_BEGIN
@interface ReactNativeRichTextEditorView : RCTViewComponentView {
@public EditorTextView *textView;
@public NSRange recentlyChangedRange;
@public EditorConfig *config;
@public EditorParser *parser;
@public NSMutableDictionary<NSAttributedStringKey, id> *defaultTypingAttributes;
@public NSDictionary<NSNumber *, id<BaseStyleProtocol>> *stylesDict;
@public BOOL blockEmitting;
@public BOOL emitHtml;
}
- (CGSize)measureSize:(CGFloat)maxWidth;
- (void)emitOnLinkDetectedEvent:(NSString *)text url:(NSString *)url range:(NSRange)range;
- (void)emitOnMentionEvent:(NSString *)indicator text:(nullable NSString *)text;
- (void)anyTextMayHaveBeenModified;
- (BOOL)handleStyleBlocksAndConflicts:(StyleType)type range:(NSRange)range;
@end
NS_ASSUME_NONNULL_END
#endif /* ReactNativeRichTextEditorViewNativeComponent_h */