18 lines
580 B
TypeScript
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;
|
|
}; |