UNPKG

react-native-acoustic-connect-beta

Version:

BETA: React native plugin for Acoustic Connect

84 lines (82 loc) 3.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return _Connect.default; } }); Object.defineProperty(exports, "DialogDebugger", { enumerable: true, get: function () { return _DialogDebugger.default; } }); Object.defineProperty(exports, "DialogListener", { enumerable: true, get: function () { return _DialogListener.default; } }); Object.defineProperty(exports, "KeyboardListener", { enumerable: true, get: function () { return _KeyboardListener.default; } }); Object.defineProperty(exports, "TLTRN", { enumerable: true, get: function () { return _TLTRN.default; } }); exports.default = void 0; Object.defineProperty(exports, "useDialogTracking", { enumerable: true, get: function () { return _useDialogTracking.default; } }); Object.defineProperty(exports, "withAcousticAutoDialog", { enumerable: true, get: function () { return _withAcousticAutoDialog.withAcousticAutoDialog; } }); var _reactNativeNitroModules = require("react-native-nitro-modules"); var _Connect = _interopRequireDefault(require("./components/Connect")); var _KeyboardListener = _interopRequireDefault(require("./utils/KeyboardListener")); var _DialogListener = _interopRequireDefault(require("./utils/DialogListener")); var _useDialogTracking = _interopRequireDefault(require("./utils/useDialogTracking")); var _withAcousticAutoDialog = require("./utils/withAcousticAutoDialog"); var _DialogDebugger = _interopRequireDefault(require("./utils/DialogDebugger")); var _TLTRN = _interopRequireDefault(require("./TLTRN")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /******************************************************************************************** * Copyright (C) 2025 Acoustic, L.P. All rights reserved. * * NOTICE: This file contains material that is confidential and proprietary to * Acoustic, L.P. and/or other developers. No license is granted under any intellectual or * industrial property rights of Acoustic, L.P. except as may be provided in an agreement with * Acoustic, L.P. Any unauthorized copying or distribution of content from this file is * prohibited. * * Created on 5/9/25. * ********************************************************************************************/ // Instantiating the native HybridObject is the first thing that fails when the // app's `react-native-nitro-modules` runtime does not match the version this SDK // was generated against (the generated registration is tightly coupled to the // Nitro version — see peerDependencies). Without this guard the failure surfaces // as an opaque `ClassNotFoundException` and an `undefined` module far from the // cause. Re-throw with an actionable message instead. let AcousticConnectRN; try { AcousticConnectRN = _reactNativeNitroModules.NitroModules.createHybridObject('AcousticConnectRN'); } catch (error) { throw new Error('[AcousticConnectRN] Failed to load the native HybridObject. This almost ' + 'always means a `react-native-nitro-modules` version mismatch: this SDK is ' + 'built against the exact version declared in its peerDependencies, so your ' + 'app must resolve that same version (check `npm ls react-native-nitro-modules`). ' + `Original error: ${String(error)}`); } var _default = exports.default = AcousticConnectRN; //# sourceMappingURL=index.js.map