forked from software-mansion/react-native-enriched
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnrichedTextInputView.h
More file actions
45 lines (40 loc) · 1.39 KB
/
EnrichedTextInputView.h
File metadata and controls
45 lines (40 loc) · 1.39 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
#pragma once
#import "BaseStyleProtocol.h"
#import "InputConfig.h"
#import "InputParser.h"
#import "InputTextView.h"
#import <React/RCTViewComponentView.h>
#import <UIKit/UIKit.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 */