UNPKG

@fruits-chain/react-native-xiaoshu

Version:
44 lines 1.09 kB
import type { PropsWithChildren } from 'react'; import type { ViewStyle, StyleProp, ColorValue, ViewProps } from 'react-native'; import type { OverlayTheme } from './style'; export interface OverlayProps extends PropsWithChildren<{}>, Pick<ViewProps, 'testID'> { theme?: Partial<OverlayTheme>; /** * 最外层样式 */ style?: StyleProp<ViewStyle>; /** * overlay 样式 */ overlayStyle?: StyleProp<ViewStyle>; /** * 是否展示遮罩层 * @default false */ visible: boolean; /** * z-index 层级 * @default 1 */ zIndex?: number; /** * 动画时长,单位毫秒,默认值 300 * @default animation_duration_base */ duration?: number; /** * 点击弹层 */ onPress?: () => void; /** * 当点击返回按钮时触发 * @support Android */ onRequestClose?: () => boolean; /** * 自定义遮罩层颜色 * @default overlay_background_color */ backgroundColor?: ColorValue; } //# sourceMappingURL=interface.d.ts.map