UNPKG

react-native-trays

Version:

Production-grade, Family inspired, React Native Tray System library

28 lines 995 B
import React from 'react'; import type { TrayStackConfig } from './types'; import type { EdgeInsets } from 'react-native-safe-area-context'; /** * Props for TrayRenderer component. * @property trayKey - Unique key for the tray instance. * @property trayProps - Props to pass to the tray component. * @property config - Tray stack configuration. * @property TrayComponent - The tray component to render. * @property insets - Safe area insets for proper positioning. */ interface TrayRendererProps { trayKey: string; trayProps: unknown; config: TrayStackConfig; TrayComponent: React.ComponentType<Record<string, unknown>>; insets: EdgeInsets; onDismiss: () => void; } /** * TrayRenderer * * Renders the given tray component with animation and keyboard-aware adjustments. * Handles tray position, entry/exit animations, and safe area insets. */ export declare const TrayRenderer: React.FC<TrayRendererProps>; export {}; //# sourceMappingURL=TrayRenderer.d.ts.map