UNPKG

react-native-trays

Version:

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

13 lines 498 B
import type { TrayProps, TrayContextType } from './types'; /** * useTrays * * Custom React hook to access tray stack manipulation functions for a specific stack. * Throws an error if used outside of TrayProvider. * * @template T - The tray props type. * @param stackId - The stack identifier to access. * @returns Tray context functions for the given stack. */ export declare const useTrays: <T extends TrayProps>(stackId: string) => TrayContextType<T>; //# sourceMappingURL=hooks.d.ts.map