@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
19 lines (16 loc) • 431 B
text/typescript
// Types imports.
import type {
MD2Theme,
MD3Theme,
ActivityIndicatorProps,
} from 'react-native-paper';
import type { DialogProps } from '../Dialog';
export interface Props {
visible?: boolean;
dialogProps?: Omit<DialogProps, 'visible'>;
loader?: React.ReactNode;
activityIndicatorProps?: Omit<ActivityIndicatorProps, 'animating'>;
}
export interface PropsWithTheme extends Props {
theme: MD2Theme | MD3Theme;
}