UNPKG

react-native

Version:

A framework for building native apps using React

25 lines (23 loc) 1.09 kB
/** * 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<<6720131e570d2364d1dff879e4e0f024>> * * 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 NativeComponentOptions = Readonly<{ interfaceOnly?: boolean; paperComponentName?: string; paperComponentNameDeprecated?: string; excludedPlatforms?: ReadonlyArray<"iOS" | "android">; }>; export type NativeComponentType<T extends {}> = HostComponent<T>; declare function codegenNativeComponent<Props extends {}>(componentName: string, options?: NativeComponentOptions): NativeComponentType<Props>; declare const $$codegenNativeComponent: typeof codegenNativeComponent; declare type $$codegenNativeComponent = typeof $$codegenNativeComponent; export default $$codegenNativeComponent;