mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
26 lines
667 B
JavaScript
26 lines
667 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
import type {HostComponent} from 'react-native';
|
|
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
|
|
import {requireNativeComponent} from 'react-native';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
opacity?: number,
|
|
color?: string,
|
|
|}>;
|
|
|
|
export type MyLegacyViewType = HostComponent<NativeProps>;
|
|
|
|
export default (requireNativeComponent(
|
|
'RNTMyLegacyNativeView',
|
|
): HostComponent<NativeProps>);
|