UNPKG

rn-sid-address-verification

Version:
30 lines (26 loc) 1.07 kB
"use strict"; import SIDAddressVerification from "./NativeSIDAddressVerification.js"; import { NativeEventEmitter } from 'react-native'; const eventEmitter = new NativeEventEmitter(SIDAddressVerification); eventEmitter.addListener('onLocationUpdate', data => { console.log('Location update:', data); }); // Type for the resolved address // Example usage // await MyAwesomeModule.startTrackingWithConfig('API_KEY', 'TOKEN', 'REFRESH_TOKEN'); export function startTrackingWithConfig(apiKey, customerID, verificationId) { return SIDAddressVerification.startTrackingWithConfig(apiKey, customerID, verificationId); } export function stopTracking() { SIDAddressVerification.stopTracking(); } export function fetchConfiguration(apiKey, customerID, token, refreshToken) { return SIDAddressVerification.fetchConfiguration(apiKey, customerID, token, refreshToken); } export function pickLocation() { return SIDAddressVerification.pickLocation(); } export function multiply(a, b) { return SIDAddressVerification.multiply(a, b); } //# sourceMappingURL=index.js.map