react-native-trays
Version:
Production-grade, Family inspired, React Native Tray System library
33 lines • 1.16 kB
TypeScript
/**
* TrayRenderer.tsx
*
* Renders a single tray component with animation and keyboard adjustment support.
* Handles tray position, animation, and keyboard-aware behavior for tray UI.
*/
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;
}
/**
* 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