mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
071f6d2ca6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36344 This adds the `UnstableReactLegacyComponentDescriptor`, part of the Fabric Interop Layer, inside the `react/renderer/components/legacyviewmanagerinterop` module so that it can be included by the user externally. If we wish to place it somewhere else, I'm more than happy to move it around. Changelog: [Internal] [Changed] - Expose UnstableReactLegacyComponentDescriptor inside react/renderer/components/legacyviewmanagerinterop Reviewed By: mdvacca, cipolleschi Differential Revision: D43500868 fbshipit-source-id: acfcd89efc42ff7a4ee6cb0a1cbd71d69f79721f
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
#include <react/renderer/components/view/ViewProps.h>
|
|
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* Descriptor for <UnstableReactLegacyComponent> component.
|
|
*
|
|
* This component is part of the Fabric Interop Layer and is subject to future
|
|
* changes (hence the "Unstable" prefix).
|
|
*/
|
|
template <const char *concreteComponentName>
|
|
class UnstableLegacyViewManagerInteropComponentDescriptor
|
|
: public ConcreteComponentDescriptor<
|
|
ConcreteViewShadowNode<concreteComponentName, ViewProps>> {
|
|
public:
|
|
UnstableLegacyViewManagerInteropComponentDescriptor<concreteComponentName>(
|
|
ComponentDescriptorParameters const ¶meters)
|
|
: ConcreteComponentDescriptor<
|
|
ConcreteViewShadowNode<concreteComponentName, ViewProps>>(
|
|
parameters) {}
|
|
|
|
private:
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|