2024-05-25 23:50:46 +02:00
|
|
|
import { AccessibilityRole, ViewStyle } from 'react-native';
|
2024-05-18 18:48:03 +02:00
|
|
|
|
|
|
|
export interface Action {
|
|
|
|
id: string | number;
|
|
|
|
text: string;
|
|
|
|
icon: {
|
|
|
|
iconType: string;
|
|
|
|
iconValue: string;
|
|
|
|
};
|
|
|
|
menuTitle?: string;
|
|
|
|
menuStateOn?: boolean;
|
|
|
|
disabled?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ToolTipMenuProps {
|
|
|
|
actions: Action[] | Action[][];
|
|
|
|
children: React.ReactNode;
|
|
|
|
enableAndroidRipple?: boolean;
|
|
|
|
onPressMenuItem: (id: string) => void;
|
|
|
|
title?: string;
|
|
|
|
isMenuPrimaryAction?: boolean;
|
|
|
|
isButton?: boolean;
|
|
|
|
renderPreview?: () => React.ReactNode;
|
|
|
|
onPress?: () => void;
|
|
|
|
previewValue?: string;
|
2024-05-25 23:50:46 +02:00
|
|
|
accessibilityRole?: AccessibilityRole;
|
2024-05-18 18:48:03 +02:00
|
|
|
disabled?: boolean;
|
2024-05-25 23:50:46 +02:00
|
|
|
testID?: string;
|
|
|
|
style?: ViewStyle | ViewStyle[];
|
|
|
|
accessibilityLabel?: string;
|
|
|
|
accessibilityHint?: string;
|
2024-05-18 18:48:03 +02:00
|
|
|
buttonStyle?: ViewStyle;
|
|
|
|
onMenuWillShow?: () => void;
|
|
|
|
onMenuWillHide?: () => void;
|
|
|
|
}
|