UNPKG

@datadog/mobile-react-native

Version:

A client-side React Native module to interact with Datadog

17 lines (16 loc) 729 B
/* * 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. */ import { BufferSingleton } from './BufferSingleton'; export const bufferVoidNativeCall = callback => { return BufferSingleton.getInstance().addCallback(callback); }; export const bufferNativeCallReturningId = callback => { return BufferSingleton.getInstance().addCallbackReturningId(callback); }; export const bufferNativeCallWithId = (callback, id) => { return BufferSingleton.getInstance().addCallbackWithId(callback, id); }; //# sourceMappingURL=bufferNativeCall.js.map