react-native-ios-context-menu/src/types/MenuPreviewConfig.ts
2023-10-14 03:16:34 +08:00

18 lines
580 B
TypeScript

import type { DynamicColor } from 'react-native-ios-utilities';
export type MenuPreviewType = 'DEFAULT' | 'CUSTOM';
export type MenuPreviewSize = 'INHERIT' | 'STRETCH';
/** Maps to `UIContextMenuInteractionCommitStyle` */
export type ContextMenuInteractionCommitStyle = 'dismiss' | 'pop';
export type MenuPreviewConfig = {
previewType?: MenuPreviewType;
previewSize?: MenuPreviewSize;
isResizeAnimated?: boolean;
borderRadius?: number;
backgroundColor?: DynamicColor | string;
preferredCommitStyle?: ContextMenuInteractionCommitStyle;
targetViewNode?: number;
};