"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VntelEmitter = void 0;
const react_native_1 = require("react-native");
const native_1 = require("../native");
exports.VntelEmitter = native_1.RNVntelCCCD;
const EventEmitter = new react_native_1.NativeEventEmitter(exports.VntelEmitter);
function onDataChange(fn) {
    return EventEmitter.addListener('ScanEvent', (data) => {
        // here we can add extra params, if needed
        fn(data);
    });
}
exports.default = {
    onDataChange
};
