mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
36 lines
864 B
TypeScript
36 lines
864 B
TypeScript
import { AccessibilityRole, ViewStyle } from 'react-native';
|
|
|
|
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;
|
|
accessibilityRole?: AccessibilityRole;
|
|
disabled?: boolean;
|
|
testID?: string;
|
|
style?: ViewStyle | ViewStyle[];
|
|
accessibilityLabel?: string;
|
|
accessibilityHint?: string;
|
|
buttonStyle?: ViewStyle;
|
|
onMenuWillShow?: () => void;
|
|
onMenuWillHide?: () => void;
|
|
}
|