react-native
Version:
A framework for building native apps using React
25 lines (23 loc) • 1.05 kB
TypeScript
/**
* 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.
*
* @generated SignedSource<<75dd6e87e36a070a92d70b7cf169362c>>
*
* This file was translated from Flow by scripts/build-types/index.js.
* Original file: packages/react-native/Libraries/Utilities/codegenNativeComponent.js
*/
import type { HostComponent } from "../../src/private/types/HostComponent";
type Options = Readonly<{
interfaceOnly?: boolean;
paperComponentName?: string;
paperComponentNameDeprecated?: string;
excludedPlatforms?: ReadonlyArray<"iOS" | "android">;
}>;
export type NativeComponentType<T> = HostComponent<T>;
declare function codegenNativeComponent<Props extends {}>(componentName: string, options?: Options): NativeComponentType<Props>;
declare const $$codegenNativeComponent: typeof codegenNativeComponent;
declare type $$codegenNativeComponent = typeof $$codegenNativeComponent;
export default $$codegenNativeComponent;