-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextInputView.h
More file actions
33 lines (28 loc) · 1.09 KB
/
Copy pathEnrichedTextInputView.h
File metadata and controls
33 lines (28 loc) · 1.09 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 "InputConfig.h"
#import "InputParser.h"
#import "BaseStyleProtocol.h"
#import "InputTextView.h"
#import "RCTI18nUtil.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;
@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;
@end
NS_ASSUME_NONNULL_END
#endif /* EnrichedTextInputViewNativeComponent_h */