react-native-trays
Version:
Production-grade, Family inspired, React Native Tray System library
23 lines • 754 B
TypeScript
import type { TrayRegistry, TrayStackConfig } from './types';
interface StackTray {
id: string;
tray: string;
props: unknown;
}
/**
* TrayStackRenderer
*
* Renders the top-most (active) tray in the provided stack using the given configuration and tray registry.
*
* @template T - The tray registry type.
* @param stack - The current stack of trays.
* @param config - Tray stack configuration.
* @param trays - Registry mapping tray keys to tray components.
*/
export declare const TrayStackRenderer: <T extends TrayRegistry>({ stack, config, trays, }: {
stack: StackTray[];
config: TrayStackConfig;
trays: T;
}) => import("react/jsx-runtime").JSX.Element | null;
export {};
//# sourceMappingURL=TrayStackRenderer.d.ts.map