UNPKG

sidaddressverification

Version:
25 lines (22 loc) 871 B
"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); }); // Example usage // await MyAwesomeModule.startTrackingWithConfig('API_KEY', 'TOKEN', 'REFRESH_TOKEN'); export function startTrackingWithConfig(apiKey, token, refreshToken) { return SIDAddressVerification.startTrackingWithConfig(apiKey, token, refreshToken); } export function stopTracking() { SIDAddressVerification.stopTracking(); } export function fetchConfiguration(apiKey) { return SIDAddressVerification.fetchConfiguration(apiKey); } export function multiply(a, b) { return SIDAddressVerification.multiply(a, b); } //# sourceMappingURL=index.js.map