UNPKG

1.08 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp } from 'react-native';
3export declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Content of the `DialogContent`.
6 */
7 children: React.ReactNode;
8 style?: StyleProp<ViewStyle>;
9};
10/**
11 * A component to show content in a Dialog.
12 *
13 * ## Usage
14 * ```js
15 * import * as React from 'react';
16 * import { Dialog, Portal, Text } from 'react-native-paper';
17 *
18 * const MyComponent = () => {
19 * const [visible, setVisible] = React.useState(false);
20 *
21 * const hideDialog = () => setVisible(false);
22 *
23 * return (
24 * <Portal>
25 * <Dialog visible={visible} onDismiss={hideDialog}>
26 * <Dialog.Content>
27 * <Text variant="bodyMedium">This is simple dialog</Text>
28 * </Dialog.Content>
29 * </Dialog>
30 * </Portal>
31 * );
32 * };
33 *
34 * export default MyComponent;
35 * ```
36 */
37declare const DialogContent: {
38 (props: Props): React.JSX.Element;
39 displayName: string;
40};
41export default DialogContent;
42//# sourceMappingURL=DialogContent.d.ts.map
\No newline at end of file