rn-sid-address-verification
Version:
A SourceID address verification package for react native
36 lines (34 loc) • 1.07 kB
text/typescript
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
export interface Spec extends TurboModule {
multiply(a: number, b: number): number;
startTrackingWithConfig(
apiKey: string,
customerID: string,
verificationId: string
// token: string,
// refreshToken: string
): Promise<boolean>;
stopTracking(): void;
fetchConfiguration(
apiKey: string,
customerID: string,
token: string,
refreshToken: string
): Promise<{ pollingInterval: Double; sessionTimeout: Double }>;
// Enhanced: Pick location with complete address structure
pickLocation(): Promise<{
latitude: Double;
longitude: Double;
fullAddress: string;
country?: string;
state?: string;
city?: string;
postalCode?: string;
street?: string;
}>;
addListener(eventName: string): void;
removeListeners(count: Double): void;
}
export default TurboModuleRegistry.getEnforcing<Spec>('SIDAddressVerification');