UNPKG

@attio/react-native-bottom-sheet-toolbox-stack

Version:
25 lines 1.17 kB
import * as React from "react"; import { type BottomSheetToolboxRef } from "@attio/react-native-bottom-sheet-toolbox"; export interface BottomSheetToolboxStackContextShape { sheetStack: readonly string[]; sheetRefsRef: React.RefObject<Record<string, BottomSheetToolboxRef>>; push: (sheetName: string) => void; pop: () => void; popToTop: () => void; closeAll: () => void; notifyClosed: (sheetName: string) => void; activeSheet: string | null; } export declare function useIsBottomSheetToolboxStackContext(): boolean; export declare function useBottomSheetToolboxStackContext(): BottomSheetToolboxStackContextShape; export interface BottomSheetToolboxStackProviderRef { close: () => void; } export interface BottomSheetToolboxStackProviderProps { children: React.ReactNode; initialSheetName: string | null; onClose?: () => void; ref?: React.ForwardedRef<BottomSheetToolboxStackProviderRef>; } export declare function BottomSheetToolboxStackProvider({ children, initialSheetName, onClose, ref, }: BottomSheetToolboxStackProviderProps): React.JSX.Element; //# sourceMappingURL=bottom-sheet-toolbox-stack-context.d.ts.map