1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | #import <UIKit/UIKit.h>
|
9 |
|
10 | #import <React/RCTComponentViewDescriptor.h>
|
11 | #import <React/RCTComponentViewProtocol.h>
|
12 |
|
13 | #import <react/uimanager/ComponentDescriptorRegistry.h>
|
14 |
|
15 | NS_ASSUME_NONNULL_BEGIN
|
16 |
|
17 | @protocol RCTComponentViewFactoryDelegate <NSObject>
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | - (Class<RCTComponentViewProtocol>)componentViewClassWithName:(facebook::react::ComponentName)name;
|
24 |
|
25 | @end
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | @interface RCTComponentViewFactory : NSObject
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | + (RCTComponentViewFactory *)standardComponentViewFactory;
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | - (void)registerComponentViewClass:(Class<RCTComponentViewProtocol>)componentViewClass;
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | - (RCTComponentViewDescriptor)createComponentViewWithComponentHandle:(facebook::react::ComponentHandle)componentHandle;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | - (facebook::react::ComponentDescriptorRegistry::Shared)createComponentDescriptorRegistryWithParameters:
|
53 | (facebook::react::ComponentDescriptorParameters)parameters;
|
54 |
|
55 | @property (atomic, weak, nullable) id<RCTComponentViewFactoryDelegate> delegate;
|
56 |
|
57 | @end
|
58 |
|
59 | NS_ASSUME_NONNULL_END
|