forked from software-mansion/react-native-enriched-html
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnrichedTextInputView.h
More file actions
35 lines (30 loc) · 1.29 KB
/
Copy pathEnrichedTextInputView.h
File metadata and controls
35 lines (30 loc) · 1.29 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 <React/RCTViewComponentView.h>
#import <UIKit/UIKit.h>
#import "InputConfig.h"
#import "InputParser.h"
#import "BaseStyleProtocol.h"
#import "InputTextView.h"
#ifndef EnrichedTextInputViewNativeComponent_h
#define EnrichedTextInputViewNativeComponent_h
NS_ASSUME_NONNULL_BEGIN
@interface EnrichedTextInputView : RCTViewComponentView {
@public InputTextView *textView;
@public NSRange recentlyChangedRange;
@public InputConfig *config;
@public InputParser *parser;
@public NSMutableDictionary<NSAttributedStringKey, id> *defaultTypingAttributes;
@public NSDictionary<NSNumber *, id<BaseStyleProtocol>> *stylesDict;
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *conflictingStyles;
NSDictionary<NSNumber *, NSArray<NSNumber *> *> *blockingStyles;
@public BOOL blockEmitting;
}
- (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;
- (NSArray<NSNumber *> *)getPresentStyleTypesFrom:(NSArray<NSNumber *> *)types range:(NSRange)range;
@end
NS_ASSUME_NONNULL_END
#endif /* EnrichedTextInputViewNativeComponent_h */