react-native
Version:
A framework for building native apps using React
18 lines (16 loc) • 645 B
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<<5ec0038fccbb4386e863803b012d3ac6>>
*
* This file was translated from Flow by scripts/js-api/build-types/index.js.
* Original file: packages/react-native/src/private/types/HostComponent.js
*/
import * as React from "react";
import type { HostInstance } from "./HostInstance";
export type HostComponent<Config extends {}> = (props: Omit<Config, "ref"> & {
ref?: React.Ref<HostInstance> | undefined;
}) => React.ReactNode;