@crossed/ui
Version:
A universal & performant styling library for React Native, Next.js & React
25 lines • 885 B
TypeScript
/**
* Copyright (c) Paymium.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root of this projects source tree.
*/
import { ForwardedRef, RefObject } from 'react';
import type { SharedValue } from 'react-native-reanimated';
import { ActionSheetRef } from '@crossed/sheet';
export type SheetContext = {
open: boolean;
setOpen: (_value: boolean) => void;
dismissOnOverlayPress?: boolean;
hideHandle?: boolean;
isMove: SharedValue<boolean>;
height: SharedValue<number>;
onClose: () => void;
snapInitialHeight: SharedValue<number>;
offset: number;
ref: ForwardedRef<ActionSheetRef>;
actionSheetRef: RefObject<ActionSheetRef>;
};
export declare const sheetContext: import("react").Context<SheetContext>;
export declare const useSheetContext: () => SheetContext;
//# sourceMappingURL=context.d.ts.map