2024-05-25 17:50:46 -04:00
|
|
|
import { AccessibilityRole, ViewStyle } from 'react-native';
|
2024-05-18 12:48:03 -04:00
|
|
|
|
|
|
|
export interface Action {
|
|
|
|
id: string | number;
|
|
|
|
text: string;
|
2024-06-16 22:26:43 -04:00
|
|
|
icon?: {
|
2024-05-18 12:48:03 -04:00
|
|
|
iconValue: string;
|
|
|
|
};
|
|
|
|
menuTitle?: string;
|
|
|
|
menuStateOn?: boolean;
|
|
|
|
disabled?: boolean;
|
2024-06-16 21:31:20 -04:00
|
|
|
displayInline?: boolean;
|
2024-05-18 12:48:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ToolTipMenuProps {
|
|
|
|
actions: Action[] | Action[][];
|
|
|
|
children: React.ReactNode;
|
|
|
|
enableAndroidRipple?: boolean;
|
2024-05-26 22:03:35 -04:00
|
|
|
dismissMenu?: () => void;
|
2024-05-18 12:48:03 -04:00
|
|
|
onPressMenuItem: (id: string) => void;
|
|
|
|
title?: string;
|
|
|
|
isMenuPrimaryAction?: boolean;
|
|
|
|
isButton?: boolean;
|
|
|
|
renderPreview?: () => React.ReactNode;
|
|
|
|
onPress?: () => void;
|
|
|
|
previewValue?: string;
|
2024-05-25 17:50:46 -04:00
|
|
|
accessibilityRole?: AccessibilityRole;
|
2024-05-18 12:48:03 -04:00
|
|
|
disabled?: boolean;
|
2024-05-25 17:50:46 -04:00
|
|
|
testID?: string;
|
|
|
|
style?: ViewStyle | ViewStyle[];
|
|
|
|
accessibilityLabel?: string;
|
|
|
|
accessibilityHint?: string;
|
2024-06-16 21:31:20 -04:00
|
|
|
buttonStyle?: ViewStyle | ViewStyle[];
|
2024-05-18 12:48:03 -04:00
|
|
|
onMenuWillShow?: () => void;
|
|
|
|
onMenuWillHide?: () => void;
|
|
|
|
}
|
2024-06-04 15:02:12 -04: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;
|
|
|
|
}
|