UNPKG

@datadog/mobile-react-native

Version:

A client-side React Native module to interact with Datadog

26 lines (24 loc) 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bufferVoidNativeCall = exports.bufferNativeCallWithId = exports.bufferNativeCallReturningId = void 0; var _BufferSingleton = require("./BufferSingleton"); /* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ const bufferVoidNativeCall = callback => { return _BufferSingleton.BufferSingleton.getInstance().addCallback(callback); }; exports.bufferVoidNativeCall = bufferVoidNativeCall; const bufferNativeCallReturningId = callback => { return _BufferSingleton.BufferSingleton.getInstance().addCallbackReturningId(callback); }; exports.bufferNativeCallReturningId = bufferNativeCallReturningId; const bufferNativeCallWithId = (callback, id) => { return _BufferSingleton.BufferSingleton.getInstance().addCallbackWithId(callback, id); }; exports.bufferNativeCallWithId = bufferNativeCallWithId; //# sourceMappingURL=bufferNativeCall.js.map