UNPKG

@cashfreepayments/react-native-digilocker

Version:

A React Native SDK for integrating DigiLocker verification flows into mobile applications

22 lines (19 loc) 462 B
export interface DigiLockerConfig { url: string; redirectUrl?: string; userFlow?: 'signin' | 'signup'; onSuccess?: (data: any) => void; onError?: (error: string) => void; onCancel?: () => void; } export interface DigiLockerResult { success: boolean; data?: any; error?: string; } export interface DigiLockerModalProps { config: DigiLockerConfig; visible: boolean; onResult: (result: DigiLockerResult) => void; onCancel: () => void; }