react-native-trays
Version:
Production-grade, Family inspired, React Native Tray System library
18 lines • 728 B
TypeScript
import type { TrayRegistry, TrayStackConfig, StackTray } from './types';
/**
* 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, onDismiss, }: {
stack: StackTray[];
config: TrayStackConfig;
trays: T;
onDismiss: (trayId: string) => void;
}) => import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=TrayStackRenderer.d.ts.map