import * as React from 'react'; import type { ThemeProp } from 'src/types'; import { IconSource } from '../Icon'; export declare type Props = { /** * Custom color for action icon. */ color?: string; /** * Name of the icon to show. */ icon: IconSource; /** * Optional icon size. */ size?: number; /** * @optional */ theme?: ThemeProp; }; /** * @supported Available in v5.x with theme version 3 * A component to show an icon in a Dialog. * * ## Usage * ```js * import * as React from 'react'; * import { StyleSheet } from 'react-native'; * import { Dialog, Portal, Text } from 'react-native-paper'; * * const MyComponent = () => { * const [visible, setVisible] = React.useState(false); * * const hideDialog = () => setVisible(false); * * return ( * * * * This is a title * * This is simple dialog * * * * ); * }; * * const styles = StyleSheet.create({ * title: { * textAlign: 'center', * }, * }) * * export default MyComponent; * ``` */ declare const DialogIcon: { ({ size, color, icon, theme: themeOverrides, }: Props): React.JSX.Element | null; displayName: string; }; export default DialogIcon; export { DialogIcon }; //# sourceMappingURL=DialogIcon.d.ts.map