-
-
Notifications
You must be signed in to change notification settings - Fork 409
/
SheetContext.d.ts
38 lines (38 loc) · 1.88 KB
/
SheetContext.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { TamaguiElement } from '@tamagui/core';
import React from 'react';
import { PositionChangeHandler, ScrollBridge, SheetProps } from './types';
type SheetContextValue = Required<Pick<SheetProps, 'open' | 'position' | 'snapPoints' | 'dismissOnOverlayPress'>> & {
hidden: boolean;
setPosition: PositionChangeHandler;
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
contentRef: React.RefObject<TamaguiElement>;
dismissOnSnapToBottom: boolean;
scrollBridge: ScrollBridge;
frameSize: number;
modal: boolean;
};
export declare const createSheetContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
(props: ContextValueType & {
scope: import("@tamagui/create-context").Scope<ContextValueType>;
children: React.ReactNode;
}): JSX.Element;
displayName: string;
}, (consumerName: string, scope: import("@tamagui/create-context").Scope<ContextValueType | undefined>) => ContextValueType], createSheetScope: import("@tamagui/create-context").CreateScope;
export declare const SheetProvider: {
(props: Required<Pick<SheetProps, "open" | "position" | "snapPoints" | "dismissOnOverlayPress">> & {
hidden: boolean;
setPosition: PositionChangeHandler;
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
contentRef: React.RefObject<TamaguiElement>;
dismissOnSnapToBottom: boolean;
scrollBridge: ScrollBridge;
frameSize: number;
modal: boolean;
} & {
scope: import("@tamagui/create-context").Scope<SheetContextValue>;
children: React.ReactNode;
}): JSX.Element;
displayName: string;
}, useSheetContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<SheetContextValue | undefined>) => SheetContextValue;
export {};
//# sourceMappingURL=SheetContext.d.ts.map