UNPKG

theta-client-react-native

Version:

This library provides a way to control RICOH THETA using.

59 lines (57 loc) 2.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { THETA_EVENT_NAME: true }; exports.THETA_EVENT_NAME = void 0; var _reactNative = require("react-native"); var _thetaRepository = require("./theta-repository"); Object.keys(_thetaRepository).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _thetaRepository[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _thetaRepository[key]; } }); }); var _options = require("./theta-repository/options"); Object.keys(_options).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _options[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _options[key]; } }); }); var _capture = require("./capture"); Object.keys(_capture).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; if (key in exports && exports[key] === _capture[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { return _capture[key]; } }); }); const LINKING_ERROR = `The package 'theta-client-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; const ThetaClientReactNative = _reactNative.NativeModules.ThetaClientReactNative ? _reactNative.NativeModules.ThetaClientReactNative : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); /** theta frame event name */ const THETA_EVENT_NAME = exports.THETA_EVENT_NAME = ThetaClientReactNative.DEFAULT_EVENT_NAME; //# sourceMappingURL=index.js.map