UNPKG

react-native-tink-sdk

Version:
40 lines (39 loc) 1.65 kB
/// <reference types="react" /> import { ViewProps, ViewStyle, NativeSyntheticEvent } from 'react-native'; /** * This is the method for initializing Tink Money manager SDK. Should be called only once * and is required only for Android. * * @param clientId - client ID retrieved from Tink Console. * */ export declare function initTink(clientId: string): Promise<any>; /** * This is the params required for MoneyManagerFinanceOverview. * * @param style - define the width and length for the view. This will be taken effect in Andriod only. * In iOS, the entire length and width will be taken. * @param clientId - client ID retrieved from Tink Console. * @param accessToken - access token generated with all the required scopes. * */ export declare type MoneyManagerFinanceOverviewProps = ViewProps & { style: ViewStyle; clientId: string; clientAccessToken: string; userAccessToken: string; userId: string; idHint: string; redirectUri: string; userPressedBack?: (event?: NativeSyntheticEvent<{}>) => void; }; export declare const MoneyManagerFinanceOverview: (props: MoneyManagerFinanceOverviewProps) => import("react").JSX.Element; /** * This is the method for opening money manager view * and is required only for Android. * * @param clientId - client ID retrieved from Tink Console. * @param accessToken - access token generated with all the required scopes. * */ export declare function showMoneyManager(clientId: string, userAccessToken: string, appAccessToken: string, userId: string, idHint: string, actorClientId: string, scope: string, redirectUri: string): Promise<any>;