@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
24 lines (20 loc) • 593 B
text/typescript
// Types imports.
import type { MD2Theme, MD3Theme } from 'react-native-paper';
import type { DialogProps } from '../Dialog';
import type { TextProps } from '../Text';
import type { ButtonProps } from '../Button';
export interface Action {
action?: string;
actionProps?: Omit<ButtonProps, 'text'>;
}
export interface Props {
dialogProps?: DialogProps;
title?: string;
titleProps?: Omit<TextProps, 'children'>;
message?: string;
messageProps?: Omit<TextProps, 'children'>;
actions?: Action[];
}
export interface PropsWithTheme extends Props {
theme: MD2Theme | MD3Theme;
}