UNPKG

react-native

Version:

A framework for building native apps using React

26 lines (24 loc) 1.05 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<<0f52fb78ae7773fe8defaefea120bd41>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/ReactNative/requireNativeComponent.js */ import type { HostComponent } from "../../src/private/types/HostComponent"; declare const requireNativeComponent: <T extends {}>(uiViewClassName: string) => HostComponent<T>; /** * Creates values that can be used like React components which represent native * view managers. You should create JavaScript modules that wrap these values so * that the results are memoized. Example: * * const View = requireNativeComponent('RCTView'); * */ declare const $$requireNativeComponent: typeof requireNativeComponent; declare type $$requireNativeComponent = typeof $$requireNativeComponent; export default $$requireNativeComponent;