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;
|
2024-06-17 04:26:43 +02:00
|
|
|
icon?: {
|
2024-05-18 18:48:03 +02:00
|
|
|
iconValue: string;
|
|
|
|
};
|
|
|
|
menuTitle?: string;
|
|
|
|
menuStateOn?: boolean;
|
|
|
|
disabled?: boolean;
|
2024-06-17 03:31:20 +02:00
|
|
|
displayInline?: boolean;
|
2024-05-18 18:48:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ToolTipMenuProps {
|
|
|
|
actions: Action[] | Action[][];
|
|
|
|
children: React.ReactNode;
|
|
|
|
enableAndroidRipple?: boolean;
|
2024-05-27 04:03:35 +02:00
|
|
|
dismissMenu?: () => void;
|
2024-05-18 18:48:03 +02:00
|
|
|
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-07-04 21:38:50 +02:00
|
|
|
accessibilityState?: object;
|
2024-06-17 03:31:20 +02:00
|
|
|
buttonStyle?: ViewStyle | ViewStyle[];
|
2024-05-18 18:48:03 +02:00
|
|
|
onMenuWillShow?: () => void;
|
|
|
|
onMenuWillHide?: () => void;
|
|
|
|
}
|
2024-06-04 21:02:12 +02:00
|
|
|
|
|
|
|
export enum HandOffActivityType {
|
|
|
|
ReceiveOnchain = 'io.bluewallet.bluewallet.receiveonchain',
|
|
|
|
Xpub = 'io.bluewallet.bluewallet.xpub',
|
|
|
|
ViewInBlockExplorer = 'io.bluewallet.bluewallet.blockexplorer',
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface HandOffComponentProps {
|
|
|
|
url?: string;
|
|
|
|
title?: string;
|
|
|
|
type: HandOffActivityType;
|
|
|
|
userInfo?: object;
|
|
|
|
}
|