UNPKG

2.97 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, ViewStyle } from 'react-native';
3declare type Props = {
4 /**
5 * Determines whether clicking outside the dialog dismiss it.
6 */
7 dismissable?: boolean;
8 /**
9 * Callback that is called when the user dismisses the dialog.
10 */
11 onDismiss?: () => void;
12 /**
13 * Determines Whether the dialog is visible.
14 */
15 visible: boolean;
16 /**
17 * Content of the `Dialog`.
18 */
19 children: React.ReactNode;
20 style?: StyleProp<ViewStyle>;
21 /**
22 * @optional
23 */
24 theme: ReactNativePaper.Theme;
25};
26declare const _default: React.ComponentType<Pick<Props, "style" | "children" | "visible" | "onDismiss" | "dismissable"> & {
27 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
28}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & {
29 ({ children, dismissable, onDismiss, visible, style, theme, }: Props): JSX.Element;
30 Content: {
31 (props: import("react-native").ViewProps & React.RefAttributes<import("react-native").View> & {
32 children: React.ReactNode;
33 style?: StyleProp<ViewStyle>;
34 }): JSX.Element;
35 displayName: string;
36 };
37 Actions: {
38 (props: import("react-native").ViewProps & React.RefAttributes<import("react-native").View> & {
39 children: React.ReactNode;
40 style?: StyleProp<ViewStyle>;
41 }): JSX.Element;
42 displayName: string;
43 };
44 Title: React.ComponentType<Pick<import("react-native").TextProps & {
45 children: React.ReactNode;
46 } & {
47 children: React.ReactNode;
48 style?: StyleProp<import("react-native").TextStyle>;
49 theme: ReactNativePaper.Theme;
50 }, keyof import("react-native").TextProps> & {
51 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
52 }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").TextProps & {
53 children: React.ReactNode;
54 } & {
55 children: React.ReactNode;
56 style?: StyleProp<import("react-native").TextStyle>;
57 theme: ReactNativePaper.Theme;
58 }> & {
59 ({ children, theme, style, ...rest }: import("react-native").TextProps & {
60 children: React.ReactNode;
61 } & {
62 children: React.ReactNode;
63 style?: StyleProp<import("react-native").TextStyle>;
64 theme: ReactNativePaper.Theme;
65 }): JSX.Element;
66 displayName: string;
67 }, {}>;
68 ScrollArea: {
69 (props: import("react-native").ViewProps & React.RefAttributes<import("react-native").View> & {
70 children: React.ReactNode;
71 style?: StyleProp<ViewStyle>;
72 }): JSX.Element;
73 displayName: string;
74 };
75}, {}>;
76export default _default;