UNPKG

@eslam-elmeniawy/react-native-common-components

Version:

Common `ReactNative` components packed in library for usage in projects.

21 lines (17 loc) 502 B
// External imports. import * as React from 'react'; // Types imports. import type { MD2Theme, MD3Theme } from 'react-native-paper'; import type { StyleProp, ViewStyle } from 'react-native'; export interface Props { visible?: boolean; position?: 'top' | 'bottom' | 'center'; onDismiss?: () => void; dismissable?: boolean; style?: StyleProp<ViewStyle>; overlayColor?: string; children?: React.ReactNode; } export interface PropsWithTheme extends Props { theme: MD2Theme | MD3Theme; }