react-native-paper
Version:
Material design for React Native
12 lines • 750 B
TypeScript
import type { ForwardRefRenderFunction, PropsWithoutRef, RefAttributes, ForwardRefExoticComponent } from 'react';
export type ForwardRefComponent<T, P = {}> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
/**
* TypeScript generated a large union of props from `ViewProps` in
* `d.ts` files when using `React.forwardRef`. To prevent this
* `ForwardRefComponent` was created and exported. Use this
* `forwardRef` instead of `React.forwardRef` so you don't have to
* import `ForwardRefComponent`.
* More info: https://github.com/callstack/react-native-paper/pull/3603
*/
export declare const forwardRef: <T, P = {}>(render: ForwardRefRenderFunction<T, P>) => ForwardRefComponent<T, P>;
//# sourceMappingURL=forwardRef.d.ts.map