UNPKG

react-native-unit-components

Version:

Unit React Native components

30 lines 1.2 kB
import React from 'react'; import type { UNOnLoadResponse } from '../../types/shared'; import type { UNAccountData } from '../../types/shared/account.types'; import type { UNAccountMenuAction } from '../../types/shared'; import { UNAccountMenuItem, UNCreditAccount } from '../../types/shared'; export interface UNAccountComponentProps { accountId?: string; customerToken: string; menuItems?: UNAccountMenuItem[]; theme?: string; language?: string; hideActionsMenuButton?: boolean; hideSelectionMenuButton?: boolean; showLeftToSpend?: boolean; onLoad?: (response: UNOnLoadResponse<[UNAccountData]>) => void; onAccountChanged?: (account: UNAccountData) => void; onRequestLeftToSpendDetails?: (account: UNCreditAccount) => void; } export interface UNAccountRef { openActionsMenu: () => void; openAction: (action: UNAccountMenuAction) => void; refresh: () => void; } export declare enum UNAccountAction { List = "account-list", Menu = "account-menu" } declare const _default: React.ForwardRefExoticComponent<UNAccountComponentProps & React.RefAttributes<UNAccountRef>>; export default _default; //# sourceMappingURL=UNAccountComponent.d.ts.map