1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | #include <react/uimanager/ComponentDescriptorFactory.h>
|
9 | #include <react/uimanager/ComponentDescriptorRegistry.h>
|
10 | #include <react/uimanager/ContextContainer.h>
|
11 |
|
12 | namespace facebook {
|
13 | namespace react {
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | ComponentRegistryFactory getDefaultComponentRegistryFactory() {
|
19 | return [](const SharedEventDispatcher &eventDispatcher,
|
20 | const SharedContextContainer &contextContainer) {
|
21 | auto registry = std::make_shared<ComponentDescriptorRegistry>();
|
22 | return registry;
|
23 | }
|
24 | }
|
25 |
|
26 | }
|
27 | }
|