mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ab55e123da
Summary: This adds the `UnstableReactLegacyComponentDescriptor`, part of the Fabric Interop Layer for Android. Summary of the changes are: * Expose a new `rrc_legacyviewmanagerinterop` native module via prefab * Extend default App Cmake setup so `rrc_legacyviewmanagerinterop` is exposed by default * Add a sample legacy component inside RN Tester Changelog: [Internal] [Changed] - Expose UnstableReactLegacyComponentDescriptor inside react/renderer/core Reviewed By: cipolleschi Differential Revision: D43731219 fbshipit-source-id: ee26d7e9d7eff5ef6a3e22853f8ea363b9198567
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
|