2018-05-19 02:44:34 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-05-19 02:44:34 +00:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <fabric/uimanager/ComponentDescriptorFactory.h>
|
|
|
|
#include <fabric/uimanager/ComponentDescriptorRegistry.h>
|
2018-06-22 14:28:34 +00:00
|
|
|
#include <fabric/uimanager/ContextContainer.h>
|
2018-05-19 02:44:34 +00:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a sample implementation. Each app should provide its own.
|
|
|
|
*/
|
2018-06-22 14:28:34 +00:00
|
|
|
SharedComponentDescriptorRegistry ComponentDescriptorFactory::buildRegistry(
|
|
|
|
const SharedEventDispatcher &eventDispatcher,
|
|
|
|
const SharedContextContainer &contextContainer
|
|
|
|
) {
|
2018-05-19 02:44:34 +00:00
|
|
|
auto registry = std::make_shared<ComponentDescriptorRegistry>();
|
|
|
|
return registry;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|