@cashfreepayments/react-native-digilocker
Version:
A React Native SDK for integrating DigiLocker verification flows into mobile applications
20 lines • 521 B
TypeScript
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;
}
//# sourceMappingURL=types.d.ts.map