UNPKG

react-native-plaid-link-sdk

Version:

React Native Plaid Link SDK

15 lines (14 loc) 867 B
import { TurboModule } from 'react-native'; import { Double } from 'react-native/Libraries/Types/CodegenTypes'; import { UnsafeObject } from './fabricUtils'; import { LinkSuccess, LinkExit } from '../Types'; export interface Spec extends TurboModule { create(token: string, noLoadingState: boolean, logLevel: string): void; open(onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (result: UnsafeObject<LinkExit>) => void): void; startLinkActivityForResult(token: string, noLoadingState: boolean, logLevel: string, onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void, onExitCallback: (result: UnsafeObject<LinkExit>) => void): void; submit(phoneNumber: string | undefined): void; addListener(eventName: string): void; removeListeners(count: Double): void; } declare const _default: Spec | null; export default _default;