mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-13 03:38:03 +08:00
Summary: This pull request fixes a dangling brace, causing Xcode to be unable to build RCTFabricSample. [General] [Fixed] - Fabric: Xcode build issue Pull Request resolved: https://github.com/facebook/react-native/pull/23540 Differential Revision: D14142990 Pulled By: hramos fbshipit-source-id: d6c2313d831e2ea5d22c77543814b86bfe8a1d53
28 lines
794 B
C++
28 lines
794 B
C++
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include <react/uimanager/ComponentDescriptorFactory.h>
|
|
#include <react/uimanager/ComponentDescriptorRegistry.h>
|
|
#include <react/uimanager/ContextContainer.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/**
|
|
* This is a sample implementation. Each app should provide its own.
|
|
*/
|
|
ComponentRegistryFactory getDefaultComponentRegistryFactory() {
|
|
return [](const SharedEventDispatcher &eventDispatcher,
|
|
const SharedContextContainer &contextContainer) {
|
|
auto registry = std::make_shared<ComponentDescriptorRegistry>();
|
|
return registry;
|
|
};
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|