UNPKG

@sentry/react-native

Version:
11 lines 562 B
import { getMainCarrier, SDK_VERSION as CORE_SDK_VERSION } from '@sentry/core'; /* * Will either get the existing sentry carrier, or create a new one. * Based on https://github.com/getsentry/sentry-javascript/blob/f0fc41f6166857cd97a695f5cc9a18caf6a0bf43/packages/core/src/carrier.ts#L49 */ export const getSentryCarrier = () => { const carrier = getMainCarrier(); const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {}); return (__SENTRY__[CORE_SDK_VERSION] = __SENTRY__[CORE_SDK_VERSION] || {}); }; //# sourceMappingURL=carrier.js.map